From 8d4c201cb4227842a46144d59fa62aa05e6ff675 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 27 May 2026 05:28:22 +0000 Subject: [PATCH] Fix "dirty" trigger on notes --- src/frontend/src/components/editors/NotesEditor.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/editors/NotesEditor.tsx b/src/frontend/src/components/editors/NotesEditor.tsx index 32e60f2994..c92a90fc3f 100644 --- a/src/frontend/src/components/editors/NotesEditor.tsx +++ b/src/frontend/src/components/editors/NotesEditor.tsx @@ -254,9 +254,10 @@ export default function NotesEditor({ selector: ({ editor: e }) => e?.isActive('table') ?? false }); - // Sync editor editable state when permissions change + // Sync editor editable state when permissions change. + // Pass false for emitUpdate to avoid triggering onUpdate (which sets isDirty). useEffect(() => { - editor?.setEditable(canEdit && isEditing); + editor?.setEditable(canEdit && isEditing, false); }, [editor, canEdit, isEditing]); const hasNotes = useMemo(() => {