From ac3fad827af1bd1536a49f3b9f4ef0afb11e6aa8 Mon Sep 17 00:00:00 2001 From: notshivansh Date: Tue, 24 Dec 2024 14:32:29 +0530 Subject: [PATCH] add undefined check --- .../web/src/apps/dashboard/pages/testing/transform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/transform.js b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/transform.js index 5bd6213d64..08027b6bd4 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/transform.js +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/transform.js @@ -62,7 +62,9 @@ let headers = [ const MAX_SEVERITY_THRESHOLD = 100000; function getStatus(state) { - return state._name ? state._name : (state.name ? state.name : state) + if (state) + return state._name ? state._name : (state.name ? state.name : state) + return "UNKNOWN" } function getOrderPriority(state) {