rusackas commented on a change in pull request #11951:
URL: 
https://github.com/apache/incubator-superset/pull/11951#discussion_r539746021



##########
File path: superset-frontend/src/dashboard/components/SaveModal.tsx
##########
@@ -137,17 +152,17 @@ class SaveModal extends React.PureComponent {
         t('You must pick a name for the new dashboard'),
       );
     } else {
-      this.onSave(data, dashboardId, saveType).then(resp => {
+      this.onSave(data, dashboardId, saveType).then((resp: any) => {
         if (
           saveType === SAVE_TYPE_NEWDASHBOARD &&
           resp &&
           resp.json &&
           resp.json.id
         ) {
-          window.location = `/superset/dashboard/${resp.json.id}/`;
+          window.location.href = `/superset/dashboard/${resp.json.id}/`;

Review comment:
       Well, _back when I_ started building websites, there wasn't even 
JavaScript yet! Or CSS! Gather round, let me spin you a yarn about the old 
days. You see, there was this browser called Mosaic...
   
   ... hey, are you kids even listening?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to