From fa10a696c42dcf581c5b4e6c3ecd2dc81334c651 Mon Sep 17 00:00:00 2001 From: MichaelPesce Date: Wed, 23 Oct 2024 13:11:21 -0400 Subject: [PATCH] redirect to homepage if data isnt present in state --- electron/ui/src/views/Dashboard/Dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron/ui/src/views/Dashboard/Dashboard.js b/electron/ui/src/views/Dashboard/Dashboard.js index aa16c79..dbc5823 100644 --- a/electron/ui/src/views/Dashboard/Dashboard.js +++ b/electron/ui/src/views/Dashboard/Dashboard.js @@ -48,7 +48,7 @@ export default function Dashboard(props) { useEffect(()=>{ try { - if(!scenario) { + if(!scenario?.data_input) { navigateHome() } setInputDataEdited(false)