We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7d365b1 + ae4102e commit 334aeebCopy full SHA for 334aeeb
Resources/Private/JavaScript/state/index.js
@@ -57,7 +57,8 @@ export const selectors = {
57
const loadConfiguration = function* loadConfiguration() {
58
const moduleUri = yield select($get('env.moduleUri'));
59
const routePath = window.location.pathname === moduleUri ? '' : window.location.pathname.substring(moduleUri.length + 1);
60
- let [routePrototypeName] = routePath.split('/');
+ const routePathSplitted = routePath.split('/');
61
+ let routePrototypeName = routePathSplitted[1];
62
63
while (true) { // eslint-disable-line
64
yield take(actions.sites.select);
0 commit comments