From 7eac84cafb042e55be8e2cbd65515ffc806d6a64 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Sat, 17 May 2025 12:43:50 +0300 Subject: [PATCH] fix useClientsQuery & useMastersQuery query --- apps/web/hooks/api/contacts/query.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/web/hooks/api/contacts/query.ts b/apps/web/hooks/api/contacts/query.ts index 6c8134f..afe8e97 100644 --- a/apps/web/hooks/api/contacts/query.ts +++ b/apps/web/hooks/api/contacts/query.ts @@ -7,7 +7,6 @@ export const useClientsQuery = (props?: Parameters[0]) => { const telegramId = props?.telegramId || session?.user?.telegramId; return useQuery({ - enabled: false, queryFn: () => getClients({ telegramId }), queryKey: ['customer', 'telegramId', telegramId, 'clients'], }); @@ -18,7 +17,6 @@ export const useMastersQuery = (props?: Parameters[0]) => { const telegramId = props?.telegramId || session?.user?.telegramId; return useQuery({ - enabled: false, queryFn: () => getMasters({ telegramId }), queryKey: ['customer', 'telegramId', telegramId, 'masters'], });