Skip to content

Commit

Permalink
only return dashboard if data is present
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Oct 23, 2024
1 parent fa10a69 commit 766441d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions electron/ui/src/views/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Dashboard(props) {
const handleOpenEditName = () => setOpenEditName(true);
const handleCloseEditName = () => setOpenEditName(false);
const { port } = useApp()

console.log(scenario)
useEffect(()=>{
try {
if(!scenario?.data_input) {
Expand Down Expand Up @@ -102,8 +102,7 @@ export default function Dashboard(props) {
handleEditScenarioName(name, scenario.id, true)
setOpenEditName(false)
}

return (
if (scenario?.data_input) return (
<>
<ProcessToolbar
handleSelection={handleSetSection}
Expand Down

0 comments on commit 766441d

Please sign in to comment.