Skip to content

Commit 334aeeb

Browse files
authored
Merge pull request #102 from bwaidelich/98-fix-reload
BUGFIX: Fix reloading of Monocle Preview
2 parents 7d365b1 + ae4102e commit 334aeeb

File tree

3 files changed

+48
-81536
lines changed

3 files changed

+48
-81536
lines changed

Resources/Private/JavaScript/state/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ export const selectors = {
5757
const loadConfiguration = function* loadConfiguration() {
5858
const moduleUri = yield select($get('env.moduleUri'));
5959
const routePath = window.location.pathname === moduleUri ? '' : window.location.pathname.substring(moduleUri.length + 1);
60-
let [routePrototypeName] = routePath.split('/');
60+
const routePathSplitted = routePath.split('/');
61+
let routePrototypeName = routePathSplitted[1];
6162

6263
while (true) { // eslint-disable-line
6364
yield take(actions.sites.select);

0 commit comments

Comments
 (0)