We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6230a commit 510dea2Copy full SHA for 510dea2
src/dashboard/DashboardView.react.js
@@ -309,10 +309,9 @@ export default class DashboardView extends React.Component {
309
);
310
311
let content = <div className={styles.content}>{this.renderContent()}</div>;
312
- const allowedRoutes = [...coreSubsections, ...pushSubsections, ...settingsSections]
313
- .map(({ link }) => link.split('/')[1]);
314
- const canRoute =
315
- allowedRoutes.includes(this.state.route) || this.state.route === 'views';
+ const canRoute = [...coreSubsections, ...pushSubsections, ...settingsSections]
+ .map(({ link }) => link.split('/')[1])
+ .includes(this.state.route);
316
317
if (!canRoute) {
318
content = (
0 commit comments