From 478e6e623cb0ea73d153aa404f8817e7752dfb1d Mon Sep 17 00:00:00 2001 From: frikky Date: Tue, 9 Aug 2022 13:39:35 +0200 Subject: [PATCH] Fixed app framework bug when not logged in --- frontend/src/components/DetectionFramework.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/DetectionFramework.jsx b/frontend/src/components/DetectionFramework.jsx index a995a493..db8e0850 100644 --- a/frontend/src/components/DetectionFramework.jsx +++ b/frontend/src/components/DetectionFramework.jsx @@ -693,7 +693,7 @@ const Framework = (props) => { window.location.host === "shuffler.io"; const imgSize = 50; - var parsedFrameworkData = frameworkData + var parsedFrameworkData = frameworkData === undefined ? {} : frameworkData // Awful mapping to make sure all access is always there if (frameworkData !== undefined) { @@ -778,7 +778,7 @@ const Framework = (props) => { } } else { - console.log("No frameworkdata for org! Setting default") + //console.log("No frameworkdata for org! Setting default") parsedFrameworkData["Cases"] = {} parsedFrameworkData["SIEM"] = {} parsedFrameworkData["Assets"] = {} @@ -789,7 +789,7 @@ const Framework = (props) => { parsedFrameworkData["EDR & AV"] = {} } - console.log("Framework - update? ", parsedFrameworkData) + //console.log("Framework - update? ", parsedFrameworkData) // 0 = automated, 1 = manual const [usecaseType, setUsecaseType] = React.useState(0)