From 84588e74d2fa11e2268edee1f493acef44e6cce3 Mon Sep 17 00:00:00 2001 From: Sonali Patel <44675394+sonali623@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:21:08 +0530 Subject: [PATCH] fix bug in script.js (#83) * add pulse telemetry api plugin * bug fix: update script.js --------- Co-authored-by: sonali623 --- public/dashboards/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/dashboards/script.js b/public/dashboards/script.js index 494209549ed9e..73867df807a8a 100644 --- a/public/dashboards/script.js +++ b/public/dashboards/script.js @@ -9,7 +9,7 @@ var sysdigService = function($) { var backendId = ARGS['backend']; var backend = "default"; - if (backendId.match("prod[2-9]$")) { + if (backendId && backendId.match("prod[2-9]$")) { backend = "Sysdig Prod" + backendId.at(4); } else if (backendId == "prod1") { backend = "Sysdig Prod";