From 1fd2f4354132362850bb74e19a267985b0acfe3f Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Thu, 21 Oct 2021 13:44:45 -0400 Subject: [PATCH] Fix build --- packages/react-json-tree/examples/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-json-tree/examples/src/App.tsx b/packages/react-json-tree/examples/src/App.tsx index 53576e9e..83ad4d07 100644 --- a/packages/react-json-tree/examples/src/App.tsx +++ b/packages/react-json-tree/examples/src/App.tsx @@ -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, },