Fix build

This commit is contained in:
Nathan Bierema 2021-10-21 13:44:45 -04:00
parent 10c3fae5ae
commit 1fd2f43541

View File

@ -28,7 +28,8 @@ const getValueLabelStyle: StylingValue = ({ style }, nodeType, keyPath) => ({
style: {
...style,
color:
!Number.isNaN(keyPath[0]) && !(parseInt(keyPath, 10) % 2)
!Number.isNaN((keyPath as unknown[])[0]) &&
!(parseInt(keyPath as string, 10) % 2)
? '#33F'
: style!.color,
},