[bugfix] don't parse save dashboard response (#6349)

* [bugfix] don't parse save dashboard response

* [dashboard] remove bracket in error message
This commit is contained in:
Chris Williams 2018-11-08 19:27:22 -08:00 committed by GitHub
parent 3d7752600b
commit 62dcce890c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -132,6 +132,7 @@ export function saveDashboardRequest(data, id, saveType) {
SupersetClient.post({
endpoint: `/superset/${path}/${id}/`,
postPayload: { data },
parseMethod: null,
})
.then(response =>
Promise.all([
@ -147,7 +148,7 @@ export function saveDashboardRequest(data, id, saveType) {
addDangerToast(
`${t(
'Sorry, there was an error saving this dashboard: ',
)} ${error}}`,
)} ${error}`,
),
),
),