diff --git a/frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx b/frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx index f1ca16ede..520ec2c80 100644 --- a/frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx +++ b/frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx @@ -75,16 +75,13 @@ export const Skew = ({ getValue }: ScewProps) => { type OnlinePartitionsProps = CellContext< BrokersTableRow, - BrokersTableRow['onlinePartitionCount'] + BrokersTableRow['inSyncPartitions'] >; export const OnlinePartitions = ({ row }: OnlinePartitionsProps) => { const { count, inSyncPartitions } = row.original; - if ( - count === undefined || - inSyncPartitions === undefined - ) { + if (count === undefined || inSyncPartitions === undefined) { return null; } diff --git a/frontend/src/components/Brokers/BrokersList/lib/utils.ts b/frontend/src/components/Brokers/BrokersList/lib/utils.ts index b10e59a6b..2bb55b94f 100644 --- a/frontend/src/components/Brokers/BrokersList/lib/utils.ts +++ b/frontend/src/components/Brokers/BrokersList/lib/utils.ts @@ -69,7 +69,7 @@ export const getBrokersTableColumns = () => { header: 'Leader skew', cell: Cell.Skew, }), - columnHelper.accessor('onlinePartitionCount', { + columnHelper.accessor('inSyncPartitions', { header: 'Online partitions', cell: Cell.OnlinePartitions, }),