fix: handle disabled contacts plugin in mentions popup (#9904)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-09-22 13:31:27 +07:00
committed by GitHub
parent 566b83ead7
commit 8195da3bf7
@@ -47,6 +47,8 @@
async function getMultipleEmployeeSearchItems (localQuery: string, lastIndex: number): Promise<SearchItem[]> {
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, {})