Skip to content

Commit 9b59ae0

Browse files
committed
fix(Storage): fix groups/nodes counter
1 parent e1e4d55 commit 9b59ae0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/containers/Storage/Storage.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ class Storage extends React.Component {
227227
return label;
228228
}
229229

230-
if (count.total === flatListStorageEntities.length) {
231-
label += count.total;
230+
// count.total can be missing in old versions
231+
if (flatListStorageEntities.length === Number(count.total) || !count.total) {
232+
label += flatListStorageEntities.length;
232233
} else {
233234
label += `${flatListStorageEntities.length} of ${count.total}`;
234235
}

0 commit comments

Comments
 (0)