diff --git a/src/modules/datasets/actions.js b/src/modules/datasets/actions.js index 947d56b1f..21b36ef11 100644 --- a/src/modules/datasets/actions.js +++ b/src/modules/datasets/actions.js @@ -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))), );