Skip to content

Commit 823c030

Browse files
mejo-backportbot[bot]
authored andcommitted
fix(editor): pass default value when injecting HOOK_MENTION_SEARCH
fix(editor): pass default value when injecting HOOK_MENTION_SEARCH Signed-off-by: Jonas <jonas@freesources.org> [skip ci]
1 parent 0fe6269 commit 823c030

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)