mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
After saving slice fixing redirect (#3572)
This commit is contained in:
committed by
Maxime Beauchemin
parent
f8cc05b54e
commit
064363df78
@@ -108,7 +108,11 @@ class SaveModal extends React.Component {
|
||||
this.props.actions.saveSlice(saveUrl)
|
||||
.then((data) => {
|
||||
// Go to new slice url or dashboard url
|
||||
window.location = data.slice.slice_url;
|
||||
if (gotodash) {
|
||||
window.location = data.dashboard;
|
||||
} else {
|
||||
window.location = data.slice.slice_url;
|
||||
}
|
||||
});
|
||||
this.props.onHide();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user