mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
Multi layers DECK.GL visualization (#4096)
* Multi layers DECK.GL viz * Fix tests * rebasing * Fix error handling in chartActions * Addressing comments
This commit is contained in:
committed by
GitHub
parent
82ed4878c4
commit
45686a1af6
@@ -120,7 +120,20 @@ export function runQuery(formData, force = false, timeout = 60, key) {
|
||||
if (err.statusText === 'timeout') {
|
||||
dispatch(chartUpdateTimeout(err.statusText, timeout, key));
|
||||
} else if (err.statusText !== 'abort') {
|
||||
dispatch(chartUpdateFailed(err.responseJSON, key));
|
||||
let errObject;
|
||||
if (err.responseJSON) {
|
||||
errObject = err.responseJSON;
|
||||
} else if (err.stack) {
|
||||
errObject = {
|
||||
error: 'Unexpected error: ' + err.description,
|
||||
stacktrace: err.stack,
|
||||
};
|
||||
} else {
|
||||
errObject = {
|
||||
error: 'Unexpected error.',
|
||||
};
|
||||
}
|
||||
dispatch(chartUpdateFailed(errObject, key));
|
||||
}
|
||||
});
|
||||
const annotationLayers = formData.annotation_layers || [];
|
||||
|
||||
Reference in New Issue
Block a user