From 0b38ba81089cdd9b3d9ac8e4fffe1969f7a2865e Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Wed, 18 Sep 2024 18:47:18 +0200 Subject: [PATCH] feat: migrate to files:node:updated Signed-off-by: Luka Trovic --- src/components/NoteRich.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) },