fix: update dependency array in useEffect to track specific qna_custom_instructions property

This commit is contained in:
JoeMakuta 2026-03-30 17:28:54 +02:00
parent 1080cf5ed4
commit a942bf5a79

View file

@ -40,7 +40,7 @@ export function PromptConfigManager({ searchSpaceId }: PromptConfigManagerProps)
setCustomInstructions(searchSpace.qna_custom_instructions || "");
setHasChanges(false);
}
}, [searchSpace]);
}, [searchSpace?.qna_custom_instructions]);
// Track changes
useEffect(() => {