Fix for NotesEditor
This commit is contained in:
parent
9a386428ba
commit
b06f47815d
|
|
@ -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 ?? '') : '',
|
||||
|
|
|
|||
Loading…
Reference in New Issue