Fix for NotesEditor

This commit is contained in:
Oliver Walters 2026-06-14 00:35:08 +00:00
parent 9a386428ba
commit b06f47815d
1 changed files with 1 additions and 1 deletions

View File

@ -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 ?? '') : '',