Skip to content

Commit 26c6385

Browse files
committed
Fix proptype warning
1 parent aa1e75f commit 26c6385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Collection/Collection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Collection extends React.Component {
3636

3737
render() {
3838
const { collection, collections, collectionName, isSearchResults, searchTerm } = this.props;
39-
const newEntryUrl = collection.get('create') && getNewEntryUrl(collectionName);
39+
const newEntryUrl = collection.get('create') ? getNewEntryUrl(collectionName) : '';
4040
return (
4141
<div className="nc-collectionPage-container">
4242
<Sidebar collections={collections} searchTerm={searchTerm}/>

0 commit comments

Comments
 (0)