diff --git a/src/renderer/src/hooks/agents/useUpdateAgent.ts b/src/renderer/src/hooks/agents/useUpdateAgent.ts index 4bf8422c43..2d259d26b6 100644 --- a/src/renderer/src/hooks/agents/useUpdateAgent.ts +++ b/src/renderer/src/hooks/agents/useUpdateAgent.ts @@ -1,18 +1,7 @@ -import { AgentEntity } from '@renderer/types' -import { useMutation, useQueryClient } from '@tanstack/react-query' - export const useUpdateAgent = () => { - const qc = useQueryClient() - - // TODO: use api - return useMutation({ - mutationFn: async (agentUpdate: Partial & { id: string }) => { - throw new Error(`useUpdateAgent mutationFn not implemented for agent ${agentUpdate.id}`) - }, - onSuccess: (updated: AgentEntity) => { - qc.setQueryData(['todos'], (old) => - old ? old.map((t) => (t.id === updated.id ? updated : t)) : [] - ) + return { + updateAgent: () => { + window.toast.info('Not implemented') } - }) + } }