We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fd9afa + e1e9109 commit 418ce48Copy full SHA for 418ce48
src/application/services/useNoteEditor.ts
@@ -83,12 +83,12 @@ export const useNoteEditor = function useNoteEditor(options: UseNoteEditorOption
83
const noteAndUserTools = computed<EditorTool[] | undefined>(() => {
84
const isDraft = options.isDraftResolver();
85
const noteTools = isDraft ? [] : toValue(options.noteTools);
86
- const userTools = toValue(userEditorTools);
+ const userTools = toValue(userEditorTools) ?? [];
87
88
/**
89
* If tools are not loaded yet, return undefined
90
*/
91
- if (noteTools === undefined || userTools === undefined) {
+ if (noteTools === undefined) {
92
return undefined;
93
}
94
0 commit comments