Skip to content

Commit bcf8c41

Browse files
engelmontymxb
authored andcommitted
Fix: Databrowser shows correct count of filtered objects (#836)
1 parent 1a84f72 commit bcf8c41

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* _Contributing to this repo? Add info about your change here to be included in next release_
66
* Fix: Filtering with a 1-digit number (#831), thanks to [Pascal Giguère](https://github.com/pgiguere1)
7+
* Fix: Databrowser shows correct count of filtered objects, thanks to [Tom Engelbrecht](https://github.com/engel)
78

89
### 1.1.2
910

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export default class Browser extends DashboardView {
330330
async fetchData(source, filters = new List()) {
331331
const data = await this.fetchParseData(source, filters);
332332
var filteredCounts = { ...this.state.filteredCounts };
333-
if (filters.length > 0) {
333+
if (filters.size > 0) {
334334
filteredCounts[source] = await this.fetchParseDataCount(source,filters);
335335
} else {
336336
delete filteredCounts[source];

0 commit comments

Comments
 (0)