Skip to content

Commit

Permalink
Fix bug where access property of null
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Jan 16, 2024
1 parent eb89f8a commit 6f9a741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web-pkg/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default defineComponent({
return panelName
},
activePanelName() {
return this.activeAvailablePanelName || this.rootPanel.name
return this.activeAvailablePanelName || this.rootPanel?.name
},
rootPanel() {
return this.panels.find((panel) => panel.isRoot?.(this.panelContext))
Expand Down

0 comments on commit 6f9a741

Please sign in to comment.