fix(useAgents): add missing dependencies to useCallback hook

This commit is contained in:
icarus 2025-09-26 14:41:01 +08:00
parent 4b1f7db506
commit 4e9340f551

View File

@ -55,7 +55,7 @@ export const useAgents = () => {
window.toast.error(formatErrorMessageWithPrefix(error, t('agent.delete.error.failed'))) window.toast.error(formatErrorMessageWithPrefix(error, t('agent.delete.error.failed')))
} }
}, },
[client, mutate, t] [activeAgentId, client, data, dispatch, mutate, t]
) )
const getAgent = useCallback( const getAgent = useCallback(