Skip to content

Commit ac7dc22

Browse files
pandeysambhiSambhavi Pandey
andauthored
FE: UX: Show N/A when consumer lag is null (#1217)
Co-authored-by: Sambhavi Pandey <sambhavi.pandey@aexp.com>
1 parent bbffa70 commit ac7dc22

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)