Skip to content

Commit ca0a4f1

Browse files
committed
Update keys
1 parent 7ebf299 commit ca0a4f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/interfaces/assistants_web/src/components/HotKeys/custom-views/Search.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { useState } from 'react';
77

88
import { AgentLogo } from '@/components/Agents/AgentLogo';
99
import { CommandActionGroup, HotKeyGroupOption, HotKeysDialogInput } from '@/components/HotKeys';
10-
import { useGetDefaultAgent } from '@/hooks';
11-
import { useConversations, useListAgents } from '@/hooks';
10+
import { useConversations, useListAgents, useGetDefaultAgent } from '@/hooks';
1211

1312
type Props = {
1413
isOpen: boolean;

src/interfaces/assistants_web/src/hooks/use-agents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const useGetDefaultAgent = () => {
1616
const cohereClient = useCohereClient();
1717

1818
return useQuery({
19-
queryKey: ['defaultAgent'],
19+
queryKey: ['agent', null],
2020
queryFn: async () => cohereClient.getDefaultAgent(),
2121
});
2222
};

0 commit comments

Comments
 (0)