Skip to content

Commit

Permalink
Fix proptype warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Quicksaver committed Jan 9, 2018
1 parent aa1e75f commit 26c6385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Collection/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="nc-collectionPage-container">
<Sidebar collections={collections} searchTerm={searchTerm}/>
Expand Down

0 comments on commit 26c6385

Please sign in to comment.