From 5a031bf659e437d169c0112a2fd30c7c0f35f1f4 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 28 Jan 2020 15:23:41 +0100 Subject: [PATCH] utils.js: Fix method `removeUrlParams()` --- public/js/icinga/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/utils.js b/public/js/icinga/utils.js index 6d5c02c6d..33b7965f0 100644 --- a/public/js/icinga/utils.js +++ b/public/js/icinga/utils.js @@ -171,8 +171,8 @@ key = encodeURIComponent(key); for (var i = 0; i < newparams.length; i++) { - if (typeof newparams[i].key === key) { - delete newparams[i]; + if (newparams[i].key === key) { + newparams.splice(i, 1); return; } }