Skip to content

Commit c76eb81

Browse files
committed
fix eslint problems
1 parent 0b39d06 commit c76eb81

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

frontend/src/components/Brokers/BrokersList/TableCells/TableCells.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,13 @@ export const Skew = ({ getValue }: ScewProps) => {
7575

7676
type OnlinePartitionsProps = CellContext<
7777
BrokersTableRow,
78-
BrokersTableRow['onlinePartitionCount']
78+
BrokersTableRow['inSyncPartitions']
7979
>;
8080

8181
export const OnlinePartitions = ({ row }: OnlinePartitionsProps) => {
8282
const { count, inSyncPartitions } = row.original;
8383

84-
if (
85-
count === undefined ||
86-
inSyncPartitions === undefined
87-
) {
84+
if (count === undefined || inSyncPartitions === undefined) {
8885
return null;
8986
}
9087

frontend/src/components/Brokers/BrokersList/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const getBrokersTableColumns = () => {
6969
header: 'Leader skew',
7070
cell: Cell.Skew,
7171
}),
72-
columnHelper.accessor('onlinePartitionCount', {
72+
columnHelper.accessor('inSyncPartitions', {
7373
header: 'Online partitions',
7474
cell: Cell.OnlinePartitions,
7575
}),

0 commit comments

Comments
 (0)