Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

#11 fix #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/shelf/NodeName.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class NodeName extends Vue {
) => any;

get someChildrenVisible(): boolean {
return this.node.children.some((child) => child.show);
return this.node.children?.some((child) => child.show);
}

get haveLeftPadding(): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/components/shelf/NodeToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class NodeToggle extends Vue {
@Prop({ required: true }) node!: NodeType;

get someChildrenVisible(): boolean {
return this.node.children.some((child) => child.show);
return this.node.children?.some((child) => child.show);
}

toggleChildren() {
Expand Down