Skip to content

Commit a106b5e

Browse files
fix(Clusters): filter empty DC (#2453)
1 parent c918868 commit a106b5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/containers/Clusters/columns.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ const CLUSTERS_COLUMNS: Column<PreparedCluster>[] = [
199199
sortable: false,
200200
render: ({row}) => {
201201
const dc = (row.cluster && row.cluster.DataCenters) || [];
202-
return <div className={b('cluster-dc')}>{dc.join(', ') || EMPTY_CELL}</div>;
202+
return (
203+
// For some reason DC list could contain empty strings
204+
<div className={b('cluster-dc')}>{dc.filter(Boolean).join(', ') || EMPTY_CELL}</div>
205+
);
203206
},
204207
},
205208
{

0 commit comments

Comments
 (0)