Skip to content

Commit

Permalink
Remove redirectWhenMissing, since it's not needed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed May 14, 2020
1 parent 054ea64 commit bb40640
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/plugins/dashboard/public/application/legacy_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,21 +229,12 @@ export function initDashboardApp(app, deps) {
);
return new Promise(() => {});
} else {
// E.g. a corrupt dashboard was detected (e.g. with invalid JSON properties)
// E.g. a corrupt or deleted dashboard
deps.core.notifications.toasts.addDanger(error.message);
history.push(DashboardConstants.LANDING_PAGE_PATH);
return new Promise(() => {});
}
})
.catch(
redirectWhenMissing({
history,
navigateToApp: deps.core.application.navigateToApp,
mapping: {
dashboard: DashboardConstants.LANDING_PAGE_PATH,
},
toastNotifications: deps.core.notifications.toasts,
})
);
});
},
},
})
Expand Down

0 comments on commit bb40640

Please sign in to comment.