Fix proptype warning
This commit is contained in:
parent
8db37ff023
commit
3691417856
@ -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}/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user