Skip to content

Commit 418ce48

Browse files
authored
Merge pull request #346 from codex-team/fix/note-text-isnt-display-when-not-authenticated
fix: note text isn't displayed when not authenticated
2 parents 3fd9afa + e1e9109 commit 418ce48

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)