diff --git a/src/components/NoteRich.vue b/src/components/NoteRich.vue index 9311e68a4..994c3437c 100644 --- a/src/components/NoteRich.vue +++ b/src/components/NoteRich.vue @@ -54,14 +54,14 @@ export default { mounted() { this.fetchData() - subscribe('files:file:updated', this.fileUpdated) + subscribe('files:node:updated', this.fileUpdated) subscribe('files_versions:restore:requested', this.onFileRestoreRequested) subscribe('files_versions:restore:restored', this.onFileRestored) }, destroyed() { this?.editor?.destroy() - unsubscribe('files:file:updated', this.fileUpdated) + unsubscribe('files:node:updated', this.fileUpdated) unsubscribe('files_versions:restore:requested', this.onFileRestoreRequested) unsubscribe('files_versions:restore:restored', this.onFileRestored) },