From b508034becc2cb4f13a800767336752b89c15ce4 Mon Sep 17 00:00:00 2001 From: Altamash Shaikh Date: Tue, 31 Oct 2023 09:29:03 +0530 Subject: [PATCH] Added code to treat null as null for default value variable, #440 --- javascripts/tagmanager.js | 2 +- javascripts/tagmanager.min.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/javascripts/tagmanager.js b/javascripts/tagmanager.js index 90b57d990..89d410d2e 100644 --- a/javascripts/tagmanager.js +++ b/javascripts/tagmanager.js @@ -1231,7 +1231,7 @@ } if ((!utils.isDefined(value) || value === null || value === false) && utils.isDefined(this.defaultValue)) { - value = this.defaultValue; + value = (this.defaultValue === 'null' ? null : this.defaultValue); } var i; diff --git a/javascripts/tagmanager.min.js b/javascripts/tagmanager.min.js index 40c7da6d6..129dfc7fb 100644 --- a/javascripts/tagmanager.min.js +++ b/javascripts/tagmanager.min.js @@ -26,10 +26,10 @@ case"lower_than":return J