瀏覽代碼

BugFix: refs to 'under' even if undefined

Yuki Takei 7 年之前
父節點
當前提交
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 (