Skip to content

Commit 94da6fe

Browse files
committed
Test
1 parent 7e90e88 commit 94da6fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/meteor/client/views/omnichannel/directory/hooks/usePriorityInfo.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ export const usePriorityInfo = (priorityId: string) => {
88
const getPriority = useEndpoint('GET', `/v1/livechat/priorities/:priorityId`, { priorityId });
99
return useQuery({
1010
queryKey: ['/v1/livechat/priorities', priorityId],
11-
queryFn: () => getPriority(),
11+
queryFn: () => {
12+
console.log('Fetching priority info for:', priorityId);
13+
const priority = getPriority();
14+
console.log('Fetched priority:', priority);
15+
return priority;
16+
},
1217
gcTime: 0,
1318
enabled,
1419
});

0 commit comments

Comments
 (0)