From f779c809c5b092676fa324ea25afdd5fcf4d4860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20A=C3=ADsa?= Date: Mon, 29 Jul 2024 18:01:31 +0300 Subject: [PATCH] childUIDs should be conditional --- src/components/Navigator/NavigatorCardItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Navigator/NavigatorCardItem.vue b/src/components/Navigator/NavigatorCardItem.vue index 16e631c49..86e9514aa 100644 --- a/src/components/Navigator/NavigatorCardItem.vue +++ b/src/components/Navigator/NavigatorCardItem.vue @@ -197,7 +197,7 @@ export default { }, computed: { isGroupMarker: ({ item: { type } }) => type === TopicTypes.groupMarker, - isParent: ({ item, isGroupMarker }) => !!item.childUIDs.length && !isGroupMarker, + isParent: ({ item, isGroupMarker }) => !!item.childUIDs?.length && !isGroupMarker, parentLabel: ({ item }) => `label-parent-${item.uid}`, siblingsLabel: ({ item }) => `label-${item.uid}`, usageLabel: ({ item }) => `usage-${item.uid}`,