We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99d5bc6 + 241afa8 commit 57fb8fbCopy full SHA for 57fb8fb
app/components/Search/search.jsx
@@ -8,6 +8,7 @@ import * as delegate from 'commons/Search/action'
8
import icons from 'file-icons-js'
9
import { Aa, Word, Reg } from './icons'
10
import * as api from 'backendAPI/searchAPI'
11
+import config from 'config'
12
13
const hoverColor = '#337ab7'
14
@@ -78,7 +79,9 @@ class SearchPanel extends Component {
78
79
}
80
81
componentWillUnmount() {
- api.searchWorkspaceDown()
82
+ if (config.searchSocketConnected) {
83
+ api.searchWorkspaceDown()
84
+ }
85
86
87
onKeyDown = (e) => {
0 commit comments