zamis 5 ani în urmă
părinte
comite
0f75ec8b3d
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      src/client/js/components/SearchForm.jsx

+ 3 - 3
src/client/js/components/SearchForm.jsx

@@ -59,11 +59,11 @@ class SearchForm extends React.Component {
 
   getHelpElement() {
     const { t, appContainer } = this.props;
+    const { isCloseHelp } = this.state;
 
     const config = appContainer.getConfig();
     const isReachable = config.isSearchServiceReachable;
 
-    console.log(this.state.isCloseHelp);
 
     if (!isReachable) {
       return (
@@ -74,11 +74,11 @@ class SearchForm extends React.Component {
       );
     }
 
-    if (this.state.isCloseHelp) {
+    if (isCloseHelp) {
       return;
     }
 
-    if (!this.state.isCloseHelp) {
+    if (!isCloseHelp) {
       return (
         <table className="table grw-search-table search-help m-0">
           <caption className="text-left text-primary p-2">