Skip to content

Commit 31668eb

Browse files
authored
fix: Obsolete, long-running data fetch request overrides displayed data of newer fetch request in the data browser (#2715)
1 parent cdff8d1 commit 31668eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dashboard/Data/Browser/Browser.react.js

+5
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,12 @@ class Browser extends DashboardView {
949949
}
950950

951951
async fetchData(source, filters = new List()) {
952+
this.loadingFilters = JSON.stringify(filters.toJSON());
952953
const data = await this.fetchParseData(source, filters);
954+
if (this.loadingFilters !== JSON.stringify(filters.toJSON())) {
955+
return;
956+
}
957+
953958
const filteredCounts = { ...this.state.filteredCounts };
954959
if (filters.size > 0) {
955960
if (this.state.isUnique) {

0 commit comments

Comments
 (0)