Skip to content

Commit e6fea58

Browse files
committed
fix(Storage): use current list size for counter
1 parent c0db58d commit e6fea58

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/containers/Storage/Storage.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ class Storage extends React.Component {
211211
storageType,
212212
groupsCount,
213213
nodesCount,
214+
flatListStorageEntities,
214215
loading,
215216
wasLoaded,
216217
} = this.props;
@@ -223,10 +224,10 @@ class Storage extends React.Component {
223224
return label;
224225
}
225226

226-
if (count.total === count.found) {
227+
if (count.total === flatListStorageEntities.length) {
227228
label += count.total;
228229
} else {
229-
label += `${count.found} of ${count.total}`;
230+
label += `${flatListStorageEntities.length} of ${count.total}`;
230231
}
231232

232233
return label;

0 commit comments

Comments
 (0)