Skip to content

Commit

Permalink
childUIDs should be conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaaisa committed Jul 30, 2024
1 parent a658773 commit f779c80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Navigator/NavigatorCardItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit f779c80

Please sign in to comment.