mirror of
https://github.com/apache/superset.git
synced 2026-04-10 20:06:13 +00:00
Return alert instead of fetch button when async results has no data (#2072)
This commit is contained in:
@@ -198,6 +198,10 @@ class ResultSet extends React.PureComponent {
|
||||
</div>
|
||||
);
|
||||
} else if (query.resultsKey) {
|
||||
if (results && data && data.length === 0) {
|
||||
// if fetched result contains zero rows of data
|
||||
return <Alert bsStyle="warning">The asynchronous query returned no data</Alert>;
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
<Alert bsStyle="warning">This query was run asynchronously
|
||||
|
||||
Reference in New Issue
Block a user