Skip to content

Commit 0a5f83b

Browse files
committed
normalizing the color type
1 parent d4153ed commit 0a5f83b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/sanity-util.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ function normalizeValue({ cache, entriesById, options, value, visitedIds }) {
210210
return value.current;
211211
}
212212

213+
if (value._type === 'color') {
214+
return value.hex;
215+
}
216+
213217
if (value._type === 'reference') {
214218
const { _ref: referenceId } = value;
215219
const referencedEntry = entriesById[referenceId];

0 commit comments

Comments
 (0)