Fix for preview errors if options contains null

This commit is contained in:
navaneeth 2021-08-30 22:51:53 +05:30
parent 347403edbd
commit 0547b2b25b

View file

@ -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))
})
}