From d1acad8ee472bee57649d9988faa2a261fd1b066 Mon Sep 17 00:00:00 2001 From: Rajat Dabade Date: Fri, 24 Nov 2023 18:17:58 +0530 Subject: [PATCH] fix: the undefined threshold format issue (#4058) --- frontend/src/container/GridTableComponent/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/container/GridTableComponent/index.tsx b/frontend/src/container/GridTableComponent/index.tsx index 4b1fab5f8f..db89133553 100644 --- a/frontend/src/container/GridTableComponent/index.tsx +++ b/frontend/src/container/GridTableComponent/index.tsx @@ -41,7 +41,7 @@ function GridTableComponent({ const idx = thresholds.findIndex( (t) => t.thresholdTableOptions === e.title, ); - if (idx !== -1) { + if (threshold && idx !== -1) { return (