fix: the undefined threshold format issue (#4058)

This commit is contained in:
Rajat Dabade 2023-11-24 18:17:58 +05:30 committed by GitHub
parent f5b1d4146f
commit d1acad8ee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ function GridTableComponent({
const idx = thresholds.findIndex(
(t) => t.thresholdTableOptions === e.title,
);
if (idx !== -1) {
if (threshold && idx !== -1) {
return (
<div
style={