Skip to content

Commit

Permalink
fix eslint problems
Browse files Browse the repository at this point in the history
  • Loading branch information
bachmanity1 committed Oct 13, 2024
1 parent 0b39d06 commit c76eb81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Brokers/BrokersList/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down

0 comments on commit c76eb81

Please sign in to comment.