Skip to content

Commit

Permalink
fix fetchDatasetDataTypesSummariesIfPossible skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Sep 5, 2023
1 parent 77731d8 commit 1fbcd44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/datasets/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const fetchDatasetDataTypesSummary = networkAction((serviceInfo, datasetID) => (
}));

export const fetchDatasetDataTypesSummariesIfPossible = (datasetID) => async (dispatch, getState) => {
if (getState().datasetDataTypes.isFetchingAll) return;
if (getState().datasetDataTypes.itemsById?.[datasetID]?.isFetching) return;
await Promise.all(
getDataServices(getState()).map(serviceInfo => dispatch(fetchDatasetDataTypesSummary(serviceInfo, datasetID))),
);
Expand Down

0 comments on commit 1fbcd44

Please sign in to comment.