Skip to content

Commit e1e9109

Browse files
committed
fix: note text isn't displayed when not authenticated
1 parent 3fd9afa commit e1e9109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/application/services/useNoteEditor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ export const useNoteEditor = function useNoteEditor(options: UseNoteEditorOption
8383
const noteAndUserTools = computed<EditorTool[] | undefined>(() => {
8484
const isDraft = options.isDraftResolver();
8585
const noteTools = isDraft ? [] : toValue(options.noteTools);
86-
const userTools = toValue(userEditorTools);
86+
const userTools = toValue(userEditorTools) ?? [];
8787

8888
/**
8989
* If tools are not loaded yet, return undefined
9090
*/
91-
if (noteTools === undefined || userTools === undefined) {
91+
if (noteTools === undefined) {
9292
return undefined;
9393
}
9494

0 commit comments

Comments
 (0)