fix
This commit is contained in:
@@ -44,7 +44,9 @@ export const originalCh = createClient({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const cleanQuery = (query?: string) =>
|
const cleanQuery = (query?: string) =>
|
||||||
query ? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim() : undefined;
|
typeof query === 'string'
|
||||||
|
? query.replace(/\n/g, '').replace(/\s+/g, ' ').trim()
|
||||||
|
: undefined;
|
||||||
|
|
||||||
export const ch = new Proxy(originalCh, {
|
export const ch = new Proxy(originalCh, {
|
||||||
get(target, property, receiver) {
|
get(target, property, receiver) {
|
||||||
|
|||||||
Reference in New Issue
Block a user