From 26c638571c41bf22a9e4a84a20a5ebf2608b231d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Miguel?= Date: Tue, 9 Jan 2018 11:53:56 +0000 Subject: [PATCH] Fix proptype warning --- src/components/Collection/Collection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Collection/Collection.js b/src/components/Collection/Collection.js index f954e736a797..8f3294c73b07 100644 --- a/src/components/Collection/Collection.js +++ b/src/components/Collection/Collection.js @@ -36,7 +36,7 @@ class Collection extends React.Component { render() { const { collection, collections, collectionName, isSearchResults, searchTerm } = this.props; - const newEntryUrl = collection.get('create') && getNewEntryUrl(collectionName); + const newEntryUrl = collection.get('create') ? getNewEntryUrl(collectionName) : ''; return (