mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Fixes loading of viewState from localStorage into URL
Needed another serialization to avoid "[Object object]" in the url.
This commit is contained in:
@@ -119,7 +119,7 @@ export function getRouter(dispatch, initialState) {
|
||||
} else {
|
||||
const mergedState = Object.assign(initialState, parsedState);
|
||||
// push storage state to URL
|
||||
window.location.hash = `!/state/${mergedState}`;
|
||||
window.location.hash = `!/state/${JSON.stringify(mergedState)}`;
|
||||
dispatch(route(mergedState));
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user