Skip to content

Commit a2ee968

Browse files
authored
fix: runtime errors (#1588)
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent f997003 commit a2ee968

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • frontend/app/components/modules/project/components/shared/header

frontend/app/components/modules/project/components/shared/header/project-menu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ const isAreaEnabled = (area: WidgetArea) => {
116116
}
117117
118118
if (area === WidgetArea.SECURITY) {
119-
return props.project?.connectedPlatforms.some((platform) => platform.toLowerCase().includes('github'));
119+
return props.project?.connectedPlatforms?.some((platform) => platform.toLowerCase().includes('github'));
120120
}
121121
122-
return widgets.length === 0 || widgets.some((widget) => props.project?.widgets.includes(lfxWidgets[widget]?.key));
122+
return widgets.length === 0 || widgets.some((widget) => props.project?.widgets?.includes(lfxWidgets[widget]?.key));
123123
};
124124
125125
const links = computed(() => lfProjectLinks.filter((link) => isAreaEnabled(link.area)));

0 commit comments

Comments
 (0)