[maps] fix user has to click back button twice to navigate back to dashboard from create maps screen (#103002)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2021-06-23 08:36:46 -06:00 committed by GitHub
parent bb4e0cc1fc
commit dd907e5487
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,9 @@ export function startAppStateSyncing(appStateManager: AppStateManager) {
stateContainer.set(initialAppState);
// set current url to whatever is in app state container
kbnUrlStateStorage.set('_a', initialAppState);
kbnUrlStateStorage.set('_a', initialAppState, {
replace: true,
});
// finally start syncing state containers with url
startSyncingAppStateWithUrl();