From ce95a774b2150c7b4b0fd74794da45215c68a0b2 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 5 Sep 2019 01:39:21 +0300 Subject: [PATCH] fix(core): don't pass boolean value to string prop, use null instead (#2609) --- .../netlify-cms-core/src/components/Editor/EditorToolbar.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js index e1f991de..60f7bb23 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js +++ b/packages/netlify-cms-core/src/components/Editor/EditorToolbar.js @@ -401,12 +401,12 @@ class EditorToolbar extends React.Component { onChangeStatus('DRAFT')} - icon={currentStatus === status.get('DRAFT') && 'check'} + icon={currentStatus === status.get('DRAFT') ? 'check' : null} /> onChangeStatus('PENDING_REVIEW')} - icon={currentStatus === status.get('PENDING_REVIEW') && 'check'} + icon={currentStatus === status.get('PENDING_REVIEW') ? 'check' : null} /> {useOpenAuthoring ? ( '' @@ -414,7 +414,7 @@ class EditorToolbar extends React.Component { onChangeStatus('PENDING_PUBLISH')} - icon={currentStatus === status.get('PENDING_PUBLISH') && 'check'} + icon={currentStatus === status.get('PENDING_PUBLISH') ? 'check' : null} /> )}