Fix proptype warning

This commit is contained in:
Luís Miguel 2018-01-09 11:53:56 +00:00 committed by Shawn Erquhart
parent 8db37ff023
commit 3691417856

View File

@ -36,7 +36,7 @@ class Collection extends React.Component {
render() { render() {
const { collection, collections, collectionName, isSearchResults, searchTerm } = this.props; const { collection, collections, collectionName, isSearchResults, searchTerm } = this.props;
const newEntryUrl = collection.get('create') && getNewEntryUrl(collectionName); const newEntryUrl = collection.get('create') ? getNewEntryUrl(collectionName) : '';
return ( return (
<div className="nc-collectionPage-container"> <div className="nc-collectionPage-container">
<Sidebar collections={collections} searchTerm={searchTerm}/> <Sidebar collections={collections} searchTerm={searchTerm}/>