Skip to content

Commit d2a20a5

Browse files
author
Gianmarco Manni
committed
fix nullable relation
1 parent 21a4f00 commit d2a20a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Layout/PanelSideBarLayout/PanelSideBar/PanelSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const PanelSideBar = (props: PanelSideBarProps) => {
1515
const { globalItems, LinkRenderer, toggledMenuItemIds, toggleMenuItem } = usePanelSideBarContext();
1616

1717
let initialActivePanel: string;
18-
if (localItems.length > 0) {
18+
if (localItems?.length > 0) {
1919
const [firstLocalItem] = localItems;
2020
initialActivePanel = firstLocalItem.id;
2121
} else {

0 commit comments

Comments
 (0)