Skip to content

Commit

Permalink
Add missing await when building data view list
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Oct 4, 2024
1 parent bf323b8 commit 036538a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,12 +415,9 @@ export function getDiscoverStateContainer({
services.dataViews.clearInstanceCache(edited);
setDataView(await services.dataViews.create(editedDataView.toSpec(), true));
} else {
const nextDataView = await updateAdHocDataViewId();
// eslint-disable-next-line no-console
console.log('onDataViewEdited', `${edited} -> ${nextDataView?.id}`);
await updateAdHocDataViewId();
}
// maybe it's flaky because of this line
loadDataViewList();
await loadDataViewList();
addLog('[getDiscoverStateContainer] onDataViewEdited triggers data fetching');
fetchData();
};
Expand Down

0 comments on commit 036538a

Please sign in to comment.