Skip to content

Commit bb5fffa

Browse files
fix(StorageNodes): fix message display on not empty data
1 parent d8cfea1 commit bb5fffa

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/containers/Storage/StorageNodes/StorageNodes.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,17 @@ function StorageNodes({data, tableSettings, visibleEntities, onShowAll}: Storage
125125
if (visibleEntities === VisibleEntities.Space) {
126126
columns = allColumns.filter((col) => col.name !== TableColumnsIds.Missing);
127127

128-
return (
129-
<EmptyFilter
130-
title={i18n('empty.out_of_space')}
131-
showAll={i18n('show_all')}
132-
onShowAll={onShowAll}
133-
/>
134-
);
128+
if (!data.length) {
129+
return (
130+
<EmptyFilter
131+
title={i18n('empty.out_of_space')}
132+
showAll={i18n('show_all')}
133+
onShowAll={onShowAll}
134+
/>
135+
);
136+
}
135137
}
136-
if (visibleEntities === VisibleEntities.Missing) {
138+
if (visibleEntities === VisibleEntities.Missing && !data.length) {
137139
return (
138140
<EmptyFilter
139141
title={i18n('empty.degraded')}

0 commit comments

Comments
 (0)