Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[dashboard] fix save/save-as flow (apache#6350)
Browse files Browse the repository at this point in the history
* [dashboard] fix save/save-as flow

* [bugfix][dashboard] consistent response type for save/save-as
  • Loading branch information
williaster authored Nov 9, 2018
1 parent 5a37732 commit 8bf9a5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion superset/assets/src/dashboard/actions/dashboardState.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export function saveDashboardRequest(data, id, saveType) {
SupersetClient.post({
endpoint: `/superset/${path}/${id}/`,
postPayload: { data },
parseMethod: null,
})
.then(response =>
Promise.all([
Expand Down
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ def save_dash(self, dashboard_id):
session.merge(dash)
session.commit()
session.close()
return 'SUCCESS'
return json_success(json.dumps({'status': 'SUCCESS'}))

@staticmethod
def _set_dash_metadata(dashboard, data):
Expand Down

0 comments on commit 8bf9a5b

Please sign in to comment.