mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-02 22:01:05 +02:00
fix: update dependency array in useEffect to track specific LLM preference properties
This commit is contained in:
parent
750cae25b7
commit
1080cf5ed4
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ export function LLMRoleManager({ searchSpaceId }: LLMRoleManagerProps) {
|
||||||
};
|
};
|
||||||
setAssignments(newAssignments);
|
setAssignments(newAssignments);
|
||||||
setHasChanges(false);
|
setHasChanges(false);
|
||||||
}, [preferences]);
|
}, [preferences?.agent_llm_id, preferences?.document_summary_llm_id, preferences?.image_generation_config_id]);
|
||||||
|
|
||||||
const handleRoleAssignment = (prefKey: string, configId: string) => {
|
const handleRoleAssignment = (prefKey: string, configId: string) => {
|
||||||
const newAssignments = {
|
const newAssignments = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue