Skip to content

Commit 0206d06

Browse files
committed
fix(colors): correctly flatten color closures
1 parent c16bf20 commit 0206d06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/flattenColorPalette.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import _ from 'lodash'
33
export default function flattenColorPalette(colors) {
44
const result = _(colors)
55
.flatMap((color, name) => {
6-
if (!_.isObject(color)) {
6+
if (_.isFunction(color) || !_.isObject(color)) {
77
return [[name, color]]
88
}
99

0 commit comments

Comments
 (0)