Skip to content

Commit

Permalink
front: stcdm - fix scenario explorator hidding scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
SharglutDev committed Jun 16, 2023
1 parent 09039a4 commit 3824728
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions front/src/common/ScenarioExplorer/ScenarioExplorerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ export default function ScenarioExplorerModal({
.then(({ results }) => setStudiesList(results))
.catch((error) => console.error(error));
}
}, [projectID]);

useEffect(() => {
setStudyID(undefined);
setScenariosList(undefined);
}, [studiesList]);
}, [projectID]);

useEffect(() => {
if (projectID && studyID && !isProjectsError) {
Expand Down

0 comments on commit 3824728

Please sign in to comment.