Browse Source

BugFix: refs to 'under' even if undefined

Yuki Takei 7 years ago
parent
commit
bac7d8e677
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/client/js/components/SearchPage/SearchResult.js

+ 1 - 3
src/client/js/components/SearchPage/SearchResult.js

@@ -173,8 +173,6 @@ class SearchResult extends React.Component {
   }
 
   render() {
-    // console.log(this.props.searchError);
-    // console.log(this.isError());
     if (this.isError()) {
       return (
         <div className="content-main">
@@ -189,7 +187,7 @@ class SearchResult extends React.Component {
 
     if (this.isNotFound()) {
       let under = '';
-      if (this.props.tree !== null) {
+      if (this.props.tree != null) {
         under = ` under "${this.props.tree}"`;
       }
       return (