From e1e9109e703b600ea88fbe5f8b9126aeed3d2883 Mon Sep 17 00:00:00 2001 From: 7eliassen Date: Mon, 16 Feb 2026 18:23:20 +0300 Subject: [PATCH] fix: note text isn't displayed when not authenticated --- src/application/services/useNoteEditor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/application/services/useNoteEditor.ts b/src/application/services/useNoteEditor.ts index ea3c9f73..1d5b4ad5 100644 --- a/src/application/services/useNoteEditor.ts +++ b/src/application/services/useNoteEditor.ts @@ -83,12 +83,12 @@ export const useNoteEditor = function useNoteEditor(options: UseNoteEditorOption const noteAndUserTools = computed(() => { const isDraft = options.isDraftResolver(); const noteTools = isDraft ? [] : toValue(options.noteTools); - const userTools = toValue(userEditorTools); + const userTools = toValue(userEditorTools) ?? []; /** * If tools are not loaded yet, return undefined */ - if (noteTools === undefined || userTools === undefined) { + if (noteTools === undefined) { return undefined; }