mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +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>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (query.resultsKey) {
|
} 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 (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Alert bsStyle="warning">This query was run asynchronously
|
<Alert bsStyle="warning">This query was run asynchronously
|
||||||
|
|||||||
Reference in New Issue
Block a user