diff --git a/src/util/flattenColorPalette.js b/src/util/flattenColorPalette.js index 3214d58d7..5110e988d 100644 --- a/src/util/flattenColorPalette.js +++ b/src/util/flattenColorPalette.js @@ -3,7 +3,7 @@ import _ from 'lodash' export default function flattenColorPalette(colors) { const result = _(colors) .flatMap((color, name) => { - if (!_.isObject(color)) { + if (_.isFunction(color) || !_.isObject(color)) { return [[name, color]] }