Skip to content

Commit 1708ad9

Browse files
committed
fix: allow route for views page
1 parent 0404b3e commit 1708ad9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dashboard/DashboardView.react.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,10 @@ export default class DashboardView extends React.Component {
306306
);
307307

308308
let content = <div className={styles.content}>{this.renderContent()}</div>;
309-
const canRoute = [...coreSubsections, ...pushSubsections, ...settingsSections]
310-
.map(({ link }) => link.split('/')[1])
311-
.includes(this.state.route);
309+
const allowedRoutes = [...coreSubsections, ...pushSubsections, ...settingsSections]
310+
.map(({ link }) => link.split('/')[1]);
311+
const canRoute =
312+
allowedRoutes.includes(this.state.route) || this.state.route === 'views';
312313

313314
if (!canRoute) {
314315
content = (

0 commit comments

Comments
 (0)