Procházet zdrojové kódy

Fixes provectus/kafka-ui#3614

Mitsuaki Ito před 1 rokem
rodič
revize
308e6f3ffc

+ 2 - 2
kafka-ui-react-app/src/components/Brokers/BrokersList/BrokersList.tsx

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