zamis 5 лет назад
Родитель
Сommit
0f75ec8b3d
1 измененных файлов с 3 добавлено и 3 удалено
  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() {
   getHelpElement() {
     const { t, appContainer } = this.props;
     const { t, appContainer } = this.props;
+    const { isCloseHelp } = this.state;
 
 
     const config = appContainer.getConfig();
     const config = appContainer.getConfig();
     const isReachable = config.isSearchServiceReachable;
     const isReachable = config.isSearchServiceReachable;
 
 
-    console.log(this.state.isCloseHelp);
 
 
     if (!isReachable) {
     if (!isReachable) {
       return (
       return (
@@ -74,11 +74,11 @@ class SearchForm extends React.Component {
       );
       );
     }
     }
 
 
-    if (this.state.isCloseHelp) {
+    if (isCloseHelp) {
       return;
       return;
     }
     }
 
 
-    if (!this.state.isCloseHelp) {
+    if (!isCloseHelp) {
       return (
       return (
         <table className="table grw-search-table search-help m-0">
         <table className="table grw-search-table search-help m-0">
           <caption className="text-left text-primary p-2">
           <caption className="text-left text-primary p-2">