Skip to content

Commit 801e201

Browse files
authored
Merge pull request #495 from chunqiuyiyu/dashboard-dev-search
Add React module and remove function of closing serch WS
2 parents 10b374d + 0f3f0c1 commit 801e201

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app/components/Search/search.jsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component } from "react";
1+
import React, { Component } from "react";
22
import { observer } from 'mobx-react'
33
import subscribeToSearch from 'commons/Search/subscribeToSearch'
44
import state from 'commons/Search/state'
@@ -78,12 +78,6 @@ class SearchPanel extends Component {
7878
subscribeToSearch()
7979
}
8080

81-
componentWillUnmount() {
82-
if (config.searchSocketConnected) {
83-
api.searchWorkspaceDown()
84-
}
85-
}
86-
8781
onKeyDown = (e) => {
8882
if (e.keyCode === 13) {
8983
this.searchTxt()

0 commit comments

Comments
 (0)