Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/application/services/useNoteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ export const useNoteEditor = function useNoteEditor(options: UseNoteEditorOption
const noteAndUserTools = computed<EditorTool[] | undefined>(() => {
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;
}

Expand Down
Loading