Skip to content

Commit

Permalink
Merge branch 'main' into add_filter_on_reports
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelHedhili authored Sep 16, 2024
2 parents 49fb3d9 + 09a2634 commit a708c33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dialogs/contingency-list-selector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const ContingencyListSelector = (props) => {
}, [props.open, props.studyUuid, currentNode, checkedContingencyList]);

useEffect(() => {
if (favoriteContingencyListUuids && favoriteContingencyListUuids.length > 0) {
if (favoriteContingencyListUuids && favoriteContingencyListUuids.length > 0 && props.open) {
fetchContingencyAndFiltersLists(favoriteContingencyListUuids)
.then((res) => {
const mapCont = res.reduce((map, obj) => {
Expand All @@ -125,7 +125,7 @@ const ContingencyListSelector = (props) => {
} else {
setContingencyList([]);
}
}, [favoriteContingencyListUuids, snackError]);
}, [favoriteContingencyListUuids, snackError, props.open]);

function getSimulatedContingencyCountLabel() {
return simulatedContingencyCount != null ? simulatedContingencyCount : '...';
Expand Down

0 comments on commit a708c33

Please sign in to comment.