Skip to content

Commit d864eb6

Browse files
committed
fix(editor): pass default value when injecting HOOK_MENTION_SEARCH
Signed-off-by: Jonas <jonas@freesources.org>
1 parent e3360bd commit d864eb6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export default defineComponent({
245245
Collaboration.configure({ document: ydoc }),
246246
CollaborationCaret.configure({ provider: { awareness } }),
247247
]
248-
const mentionSearch = inject(HOOK_MENTION_SEARCH)
248+
const mentionSearch = inject(HOOK_MENTION_SEARCH, undefined)
249249
const { openLinkHandler } = useOpenLinkHandler()
250250
const editor = isRichEditor
251251
? createRichEditor({

0 commit comments

Comments
 (0)