Skip to content

Commit 3a32b3a

Browse files
author
Sambhavi Pandey
committed
fix(#1072): show N/A when consumer lag is null
1 parent d26e026 commit 3a32b3a

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 'N/A';
36+
}
3437
let count = 0;
3538
consumers.forEach((consumer) => {
3639
count += consumer?.consumerLag || 0;

0 commit comments

Comments
 (0)