fix: update dependency array in useEffect to track specific LLM preference properties

This commit is contained in:
JoeMakuta 2026-03-30 17:28:31 +02:00
parent 750cae25b7
commit 1080cf5ed4

View file

@ -129,7 +129,7 @@ export function LLMRoleManager({ searchSpaceId }: LLMRoleManagerProps) {
};
setAssignments(newAssignments);
setHasChanges(false);
}, [preferences]);
}, [preferences?.agent_llm_id, preferences?.document_summary_llm_id, preferences?.image_generation_config_id]);
const handleRoleAssignment = (prefKey: string, configId: string) => {
const newAssignments = {