Skip to content

Commit

Permalink
Merge pull request #289 from bento-platform/fix/dataset-datatypes-counts
Browse files Browse the repository at this point in the history
fix: dataset datatypes counts loaded with user dependent data
  • Loading branch information
v-rocheleau authored Sep 5, 2023
2 parents 77731d8 + 1fbcd44 commit 413715c
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 413715c

Please sign in to comment.