Просмотр исходного кода

BugFix: refs to 'under' even if undefined

Yuki Takei 6 лет назад
Родитель
Сommit
bac7d8e677
1 измененных файлов с 1 добавлено и 3 удалено
  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 (