Skip to content

Commit 0f3f0c1

Browse files
author
chunqiuyiyu
committed
Add React module and remove function of closing serch WS
1 parent 241afa8 commit 0f3f0c1

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)