From b06f47815da0cd4bc9cc89e0f7bee466fbb642b5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 14 Jun 2026 00:35:08 +0000 Subject: [PATCH] Fix for NotesEditor --- src/frontend/src/components/editors/NotesEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/editors/NotesEditor.tsx b/src/frontend/src/components/editors/NotesEditor.tsx index ffd9fff902..3f8cd7e2ff 100644 --- a/src/frontend/src/components/editors/NotesEditor.tsx +++ b/src/frontend/src/components/editors/NotesEditor.tsx @@ -200,7 +200,7 @@ export default function NotesEditor({ const note = notesQuery.data?.find((note: any) => note.pk === noteId); setSelectedNote(note); - if (editor) { + if (editor && !editor.isDestroyed) { // Pass emitUpdate:false to avoid triggering dirty state when loading content editor.commands.setContent( note ? DOMPurify.sanitize(note.content ?? '') : '',