mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
* Fix: https://github.com/apache/incubator-superset/issues/6590, also depends on https://github.com/apache-superset/superset-ui/pull/71 * Bumped version of superset-ui-connector * Added @babel/polyfill import * Reset mock history before each test, not after each test * Update CONTRIBUTING.md
This commit is contained in:
committed by
Krist Wongsuphasawat
parent
f480a52074
commit
207d9529b2
@@ -1,5 +1,4 @@
|
||||
import shortid from 'shortid';
|
||||
import JSONbig from 'json-bigint';
|
||||
import { t } from '@superset-ui/translation';
|
||||
import { SupersetClient } from '@superset-ui/connection';
|
||||
|
||||
@@ -111,11 +110,9 @@ export function fetchQueryResults(query) {
|
||||
|
||||
return SupersetClient.get({
|
||||
endpoint: `/superset/results/${query.resultsKey}/`,
|
||||
parseMethod: 'text',
|
||||
})
|
||||
.then(({ text = '{}' }) => {
|
||||
const bigIntJson = JSONbig.parse(text);
|
||||
dispatch(querySuccess(query, bigIntJson));
|
||||
.then(({ json = {} }) => {
|
||||
dispatch(querySuccess(query, json));
|
||||
})
|
||||
.catch(response =>
|
||||
getClientErrorObject(response).then((error) => {
|
||||
|
||||
Reference in New Issue
Block a user