fix(ai): discard proposals when section context changes
This commit is contained in:
@@ -42,7 +42,7 @@ export default function AiSectionAssistant({ sectionName, text, context, documen
|
||||
setBusy(false);
|
||||
setApplying(false);
|
||||
return () => { requestId.current += 1; };
|
||||
}, [text, targetId, normalizedLanguage, targetLanguage, canUseAi]);
|
||||
}, [text, targetId, context, sectionName, normalizedLanguage, targetLanguage, canUseAi]);
|
||||
|
||||
const discard = () => {
|
||||
requestId.current += 1;
|
||||
|
||||
Reference in New Issue
Block a user