Преглед изворни кода

BugFix: refs to 'under' even if undefined

Yuki Takei пре 6 година
родитељ
комит
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() {
   render() {
-    // console.log(this.props.searchError);
-    // console.log(this.isError());
     if (this.isError()) {
     if (this.isError()) {
       return (
       return (
         <div className="content-main">
         <div className="content-main">
@@ -189,7 +187,7 @@ class SearchResult extends React.Component {
 
 
     if (this.isNotFound()) {
     if (this.isNotFound()) {
       let under = '';
       let under = '';
-      if (this.props.tree !== null) {
+      if (this.props.tree != null) {
         under = ` under "${this.props.tree}"`;
         under = ` under "${this.props.tree}"`;
       }
       }
       return (
       return (