From 6f9a741be94645a5dd8e284f204a4fcc1fc59946 Mon Sep 17 00:00:00 2001 From: Jan Ackermann <jan.alexander.ackermann@outlook.com> Date: Tue, 16 Jan 2024 14:25:46 +0100 Subject: [PATCH] Fix bug where access property of null --- packages/web-pkg/src/components/SideBar/SideBar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web-pkg/src/components/SideBar/SideBar.vue b/packages/web-pkg/src/components/SideBar/SideBar.vue index da9ea11e2dc..fb244b742e7 100644 --- a/packages/web-pkg/src/components/SideBar/SideBar.vue +++ b/packages/web-pkg/src/components/SideBar/SideBar.vue @@ -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))