From 0547b2b25bb9a13a16b5d36b47296ec7c5e0180c Mon Sep 17 00:00:00 2001 From: navaneeth Date: Mon, 30 Aug 2021 22:51:53 +0530 Subject: [PATCH] Fix for preview errors if options contains null --- frontend/src/_helpers/appUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/_helpers/appUtils.js b/frontend/src/_helpers/appUtils.js index 0bbf3bf024..901e230c2b 100644 --- a/frontend/src/_helpers/appUtils.js +++ b/frontend/src/_helpers/appUtils.js @@ -264,7 +264,7 @@ function getQueryVariables(options, state) { _.merge(queryVariables, getQueryVariables(element, state)) }) } else if(typeof options ==="object") { - Object.keys(options).forEach((key) => { + Object.keys(options || {}).forEach((key) => { _.merge(queryVariables, getQueryVariables(options[key], state)) }) }