Skip to content

Commit 8f9f377

Browse files
committed
FE: Does not show consumer lag if it is null
1 parent 9ea1a4e commit 8f9f377

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/ConsumerGroups/Details/ListItem.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ const ListItem: React.FC<Props> = ({ clusterName, name, consumers }) => {
3131
useDeleteConsumerGroupOffsetsMutation(consumerProps);
3232

3333
const getTotalconsumerLag = () => {
34+
if (consumers.every((consumer) => consumer?.consumerLag === null)) {
35+
return '';
36+
}
3437
let count = 0;
3538
consumers.forEach((consumer) => {
3639
count += consumer?.consumerLag || 0;

0 commit comments

Comments
 (0)