Merge branch 'feature/handlebars-migration' of github.com:Budibase/budibase into feature/handlebars-migration
This commit is contained in:
commit
ed89d39904
|
@ -29,6 +29,7 @@ function testObject(object) {
|
||||||
module.exports.processObject = async (object, context) => {
|
module.exports.processObject = async (object, context) => {
|
||||||
testObject(object)
|
testObject(object)
|
||||||
for (let key of Object.keys(object)) {
|
for (let key of Object.keys(object)) {
|
||||||
|
if (object[key] != null) {
|
||||||
let val = object[key]
|
let val = object[key]
|
||||||
if (typeof val === "string") {
|
if (typeof val === "string") {
|
||||||
object[key] = await module.exports.processString(object[key], context)
|
object[key] = await module.exports.processString(object[key], context)
|
||||||
|
@ -36,6 +37,7 @@ module.exports.processObject = async (object, context) => {
|
||||||
object[key] = await module.exports.processObject(object[key], context)
|
object[key] = await module.exports.processObject(object[key], context)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return object
|
return object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue