From 8195da3bf7bbc2b98aa001cfc4abc53570fc9736 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Mon, 22 Sep 2025 13:31:27 +0700 Subject: [PATCH] fix: handle disabled contacts plugin in mentions popup (#9904) Signed-off-by: Alexander Onnikov --- .../text-editor-resources/src/components/MentionPopup.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/text-editor-resources/src/components/MentionPopup.svelte b/plugins/text-editor-resources/src/components/MentionPopup.svelte index b993a989de..7029a93f3f 100644 --- a/plugins/text-editor-resources/src/components/MentionPopup.svelte +++ b/plugins/text-editor-resources/src/components/MentionPopup.svelte @@ -47,6 +47,8 @@ async function getMultipleEmployeeSearchItems (localQuery: string, lastIndex: number): Promise { if (!multipleMentions) return [] + if (employeeSearchCategory === undefined) return [] + const clazz = docClass && client.getHierarchy().hasClass(docClass) ? client.getHierarchy().getClass(docClass) : undefined const docTitle = await translate(clazz?.label ?? core.string.Object, {})