diff --git a/app/templating/utils.js b/app/templating/utils.js index 8247e3c3e..45fad58a5 100644 --- a/app/templating/utils.js +++ b/app/templating/utils.js @@ -19,6 +19,8 @@ export function getKeys (obj, prefix = '') { const newPrefix = prefix ? `${prefix}.${key}` : key; allKeys = [...allKeys, ...getKeys(obj[key], newPrefix)]; } + } else if (typeOfObj === '[object Function]') { + // Ignore functions } else if (prefix) { allKeys.push({name: prefix, value: obj}); }