mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +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:
@@ -149,9 +149,9 @@ export const DataTablesPane = ({
|
||||
resultType,
|
||||
ownState,
|
||||
})
|
||||
.then(response => {
|
||||
.then(({ json }) => {
|
||||
// Only displaying the first query is currently supported
|
||||
const result = response.result[0];
|
||||
const result = json.result[0];
|
||||
setData(prevData => ({ ...prevData, [resultType]: result.data }));
|
||||
setIsLoading(prevIsLoading => ({
|
||||
...prevIsLoading,
|
||||
|
||||
Reference in New Issue
Block a user