Fix source switching not working
parent
539f2413c5
commit
8133fbfa5d
|
@ -52,7 +52,6 @@ class DatabaseList extends Component<DatabaseListProps, DatabaseListState> {
|
|||
|
||||
public componentDidUpdate({
|
||||
querySource: prevSource,
|
||||
query: prevQuery,
|
||||
}: {
|
||||
querySource?: Source
|
||||
query: QueryConfig
|
||||
|
@ -60,10 +59,6 @@ class DatabaseList extends Component<DatabaseListProps, DatabaseListState> {
|
|||
const {querySource: nextSource, query: nextQuery} = this.props
|
||||
const differentSource = !_.isEqual(prevSource, nextSource)
|
||||
|
||||
if (prevQuery.rawText === nextQuery.rawText) {
|
||||
return
|
||||
}
|
||||
|
||||
const newMetaQuery =
|
||||
nextQuery.rawText && nextQuery.rawText.match(/^(create|drop)/i)
|
||||
|
||||
|
|
Loading…
Reference in New Issue