From 9b4d924dff1f9d0791a5967c2a9f22d9cb6550b2 Mon Sep 17 00:00:00 2001 From: orangemug Date: Fri, 24 Jan 2020 17:46:43 +0000 Subject: [PATCH] Fix to ignore modified styleSpec. --- src/components/inputs/SpecDoc.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/inputs/SpecDoc.js b/src/components/inputs/SpecDoc.js index 1cc7fe0..fe12dad 100644 --- a/src/components/inputs/SpecDoc.js +++ b/src/components/inputs/SpecDoc.js @@ -19,12 +19,19 @@ export default class SpecDoc extends React.Component { macos: "macOS", }; + const renderValues = ( + !!values && + // HACK: Currently we merge additional values into the stylespec, so this is required + // See + !Array.isArray(values) + ); + return ( <> {doc &&
{doc}
- {values && + {renderValues &&
    {Object.entries(values).map(([key, value]) => { return (