From 9e0efd5140a68eb762021968f045007701f45f1e Mon Sep 17 00:00:00 2001 From: Brett Sun Date: Tue, 9 Feb 2016 12:07:23 +0100 Subject: [PATCH] Small warnings fix for bool props --- js/components/ascribe_detail/edition.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/components/ascribe_detail/edition.js b/js/components/ascribe_detail/edition.js index f2110e10..8a69bb9b 100644 --- a/js/components/ascribe_detail/edition.js +++ b/js/components/ascribe_detail/edition.js @@ -95,19 +95,19 @@ let Edition = React.createClass({ + show={!!(edition.ownership_history && edition.ownership_history.length)}> 0}> + show={!!(edition.consign_history && edition.consign_history.length)}> 0}> + show={!!(edition.loan_history && edition.loan_history.length)}> @@ -129,14 +129,14 @@ let Edition = React.createClass({ defaultValue={edition.public_note ? edition.public_note : null} placeholder={getLangText('Enter your comments ...')} editable={!!edition.acl.acl_edit} - show={!!edition.public_note || !!edition.acl.acl_edit} + show={!!(edition.public_note && edition.acl.acl_edit)} successMessage={getLangText('Public edition note saved')} url={ApiUrls.note_public_edition} currentUser={currentUser} /> + show={!!(edition.acl.acl_edit || Object.keys(edition.extra_data).length || edition.other_data.length)}>