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 510dea2 commit d18cb6aCopy full SHA for d18cb6a
src/dashboard/DashboardView.react.js
@@ -33,10 +33,7 @@ export default class DashboardView extends React.Component {
33
34
onRouteChanged() {
35
const path = this.props.location?.pathname ?? window.location.pathname;
36
- const route = path
37
- .split('apps')[1]
38
- .split('/')[2]
39
- .split('?')[0];
+ const route = path.split('apps')[1].split('/')[2];
40
if (route !== this.state.route) {
41
this.setState({ route });
42
}
0 commit comments