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 0404b3e commit 1708ad9Copy full SHA for 1708ad9
src/dashboard/DashboardView.react.js
@@ -306,9 +306,10 @@ export default class DashboardView extends React.Component {
306
);
307
308
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);
+ const allowedRoutes = [...coreSubsections, ...pushSubsections, ...settingsSections]
+ .map(({ link }) => link.split('/')[1]);
+ const canRoute =
312
+ allowedRoutes.includes(this.state.route) || this.state.route === 'views';
313
314
if (!canRoute) {
315
content = (
0 commit comments