We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd7488 commit f1fc755Copy full SHA for f1fc755
frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx
@@ -78,8 +78,15 @@ type InSyncReplicasProps = CellContext<
78
BrokersTableRow['inSyncReplicas']
79
>;
80
81
-export const InSyncReplicas = ({ getValue }: InSyncReplicasProps) => {
82
- return <ColoredCell value={getValue() || ''} />;
+export const InSyncReplicas = ({ getValue, row }: InSyncReplicasProps) => {
+ const inSyncReplicas = getValue();
83
+ const { replicas } = row.original;
84
+ if (inSyncReplicas === undefined || replicas === undefined) {
85
+ return null;
86
+ }
87
+ return (
88
+ <ColoredCell value={inSyncReplicas} attention={inSyncReplicas < replicas} />
89
+ );
90
};
91
92
type ReplicasProps = CellContext<BrokersTableRow, BrokersTableRow['replicas']>;
0 commit comments