mirror of
https://github.com/apache/superset.git
synced 2026-04-10 03:45:22 +00:00
[sqllab] Fixed js error when results are not available (#1715)
* Fixed js error when results are not available * Flush data and query in results when running new query, keeping columns * add exception for columns * Move setState from componentWillMount to componentWillReceiveProps * Nit
This commit is contained in:
@@ -47,8 +47,7 @@ class QueryTable extends React.PureComponent {
|
||||
this.setState({ showVisualizeModal: false });
|
||||
}
|
||||
showVisualizeModal(query) {
|
||||
this.setState({ showVisualizeModal: true });
|
||||
this.setState({ activeQuery: query });
|
||||
this.setState({ activeQuery: query, showVisualizeModal: true });
|
||||
}
|
||||
restoreSql(query) {
|
||||
this.props.actions.queryEditorSetSql({ id: query.sqlEditorId }, query.sql);
|
||||
|
||||
Reference in New Issue
Block a user