Fix wrong broker tick, when broker ids starts with other than 0

This commit is contained in:
Steffen Karlsson 2023-11-27 09:24:43 +01:00
parent 17cde82dff
commit a645ba22dc
No known key found for this signature in database
GPG key ID: 154E4DD544BD30AB

View file

@ -73,13 +73,14 @@ const BrokersList: React.FC = () => {
header: 'Broker ID',
accessorKey: 'brokerId',
// eslint-disable-next-line react/no-unstable-nested-components
cell: ({ row: { id }, getValue }) => (
<S.RowCell>
cell: ({ getValue }) => {
const value = getValue<string | number>();
return (<S.RowCell>
<LinkCell
value={`${getValue<string | number>()}`}
to={encodeURIComponent(`${getValue<string | number>()}`)}
value={value}
to={encodeURIComponent(value)}
/>
{id === String(activeControllers) && (
{value === activeControllers && (
<Tooltip
value={<CheckMarkRoundIcon />}
content="Active Controller"
@ -87,7 +88,7 @@ const BrokersList: React.FC = () => {
/>
)}
</S.RowCell>
),
)},
},
{
header: 'Disk usage',