Skip to content

Commit d18cb6a

Browse files
committed
Revert "fix: parse route query string"
This reverts commit d490260.
1 parent 510dea2 commit d18cb6a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dashboard/DashboardView.react.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export default class DashboardView extends React.Component {
3333

3434
onRouteChanged() {
3535
const path = this.props.location?.pathname ?? window.location.pathname;
36-
const route = path
37-
.split('apps')[1]
38-
.split('/')[2]
39-
.split('?')[0];
36+
const route = path.split('apps')[1].split('/')[2];
4037
if (route !== this.state.route) {
4138
this.setState({ route });
4239
}

0 commit comments

Comments
 (0)