diff --git a/frontend/src/components/ConsumerGroups/Details/ListItem.tsx b/frontend/src/components/ConsumerGroups/Details/ListItem.tsx index 21560e9ca..43e4112bd 100644 --- a/frontend/src/components/ConsumerGroups/Details/ListItem.tsx +++ b/frontend/src/components/ConsumerGroups/Details/ListItem.tsx @@ -31,6 +31,9 @@ const ListItem: React.FC = ({ clusterName, name, consumers }) => { useDeleteConsumerGroupOffsetsMutation(consumerProps); const getTotalconsumerLag = () => { + if (consumers.every((consumer) => consumer?.consumerLag === null)) { + return ''; + } let count = 0; consumers.forEach((consumer) => { count += consumer?.consumerLag || 0;