mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Add 'Save As' feature for dashboards (#1669)
* Add 'Save As' feature for dashboards * Address code review comments
This commit is contained in:
committed by
Maxime Beauchemin
parent
e3a9b393c2
commit
84e8f741ae
@@ -185,3 +185,9 @@ export function getParamObject(form_data, datasource_type) {
|
||||
Object.assign(data, filterParams);
|
||||
return data;
|
||||
}
|
||||
|
||||
export function getAjaxErrorMsg(error) {
|
||||
const respJSON = error.responseJSON;
|
||||
return (respJSON && respJSON.message) ? respJSON.message :
|
||||
error.responseText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user