mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
feat: Synchronously return cached charts (#15157)
* feat: Synchronously return cached charts * Fix lint issue * Fix python lint error * Change getChartDataRequest to return response * Fix lint errors * Add test * explore_json: skip cached data check for forced refresh Co-authored-by: Rob DiCiuccio <rob.diciuccio@gmail.com>
This commit is contained in:
@@ -58,9 +58,9 @@ const ViewQueryModal: React.FC<Props> = props => {
|
||||
resultFormat: 'json',
|
||||
resultType,
|
||||
})
|
||||
.then(response => {
|
||||
.then(({ json }) => {
|
||||
// Only displaying the first query is currently supported
|
||||
const result = response.result[0];
|
||||
const result = json.result[0];
|
||||
setLanguage(result.language);
|
||||
setQuery(result.query);
|
||||
setIsLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user