From 13eb471a0cf404eee0721074cd1d1dfc75d4cb54 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 14 Jul 2017 12:34:14 -0700 Subject: [PATCH] Ignore functions again --- app/templating/utils.js | 2 ++ 1 file changed, 2 insertions(+) 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}); }