diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.tsx index 8bac38a2b7c..f61820bb284 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/EncryptedFilePlugin/FilePlugin.tsx @@ -121,7 +121,7 @@ export default function FilePlugin({ currentNote }: { currentNote: SNNote }): JS mutator.protected = note.protected }) } else { - fileNode?.remove() + editor.update(() => fileNode?.remove()) } }) .catch(console.error)