1
0
Fork 0
mirror of synced 2024-06-29 19:41:03 +12:00

Merge branch 'feature/handlebars-migration' of github.com:Budibase/budibase into feature/handlebars-migration

This commit is contained in:
mike12345567 2021-01-21 13:49:05 +00:00
commit ddb9ea50f7

View file

@ -29,11 +29,13 @@ function testObject(object) {
module.exports.processObject = async (object, context) => {
testObject(object)
for (let key of Object.keys(object)) {
let val = object[key]
if (typeof val === "string") {
object[key] = await module.exports.processString(object[key], context)
} else if (typeof val === "object") {
object[key] = await module.exports.processObject(object[key], context)
if (object[key] != null) {
let val = object[key]
if (typeof val === "string") {
object[key] = await module.exports.processString(object[key], context)
} else if (typeof val === "object") {
object[key] = await module.exports.processObject(object[key], context)
}
}
}
return object