mirror of
https://github.com/apache/superset.git
synced 2026-04-08 19:05:46 +00:00
Allow users to see query string when query returns no data (#3585)
This commit is contained in:
committed by
Maxime Beauchemin
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();
|
||||
|
||||
Reference in New Issue
Block a user