Fix: browser back button after workpad switch should be handled specially (#23619)

This commit is contained in:
Robert Monfera 2018-10-03 07:23:22 +02:00 committed by GitHub
parent 2da50a9085
commit 52df40e42f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,6 +161,11 @@ export const aeroelastic = ({ dispatch, getState }) => {
pages.map(p => p.id).forEach(createStore);
}
if (action.type === restoreHistory.toString()) {
aero.clearStores();
action.payload.workpad.pages.map(p => p.id).forEach(createStore);
}
if (action.type === appReady.toString()) {
const pages = getPages(getState());
aero.clearStores();