From 62dcce890c36168c91b80eee301dc0ef4d47a8ef Mon Sep 17 00:00:00 2001 From: Chris Williams Date: Thu, 8 Nov 2018 19:27:22 -0800 Subject: [PATCH] [bugfix] don't parse save dashboard response (#6349) * [bugfix] don't parse save dashboard response * [dashboard] remove bracket in error message --- superset/assets/src/dashboard/actions/dashboardState.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/assets/src/dashboard/actions/dashboardState.js b/superset/assets/src/dashboard/actions/dashboardState.js index f2c330c00a08d..1afb4a5789a19 100644 --- a/superset/assets/src/dashboard/actions/dashboardState.js +++ b/superset/assets/src/dashboard/actions/dashboardState.js @@ -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}`, ), ), ),