mirror of
https://github.com/apache/superset.git
synced 2024-09-12 16:49:40 -04:00
Allow users to see query string when query returns no data (#3585)
This commit is contained in:
parent
a85968eadb
commit
40fbf1c761
@ -65,7 +65,10 @@ export default class DisplayQueryButton extends React.PureComponent {
|
||||
});
|
||||
}
|
||||
beforeOpen() {
|
||||
if (['loading', null].indexOf(this.props.chartStatus) >= 0 || !this.props.queryResponse) {
|
||||
if (
|
||||
['loading', null].indexOf(this.props.chartStatus) >= 0
|
||||
|| !this.props.queryResponse || !this.props.queryResponse.query
|
||||
) {
|
||||
this.fetchQuery();
|
||||
} else {
|
||||
this.setStateFromQueryResponse();
|
||||
|
Loading…
Reference in New Issue
Block a user