Skip to content

Commit a0db7d5

Browse files
author
Nikolai Markov
committed
fix: update local storage on CHANGE_VIEW_MODE
1 parent 3bc5987 commit a0db7d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/static/modules/middlewares/local-storage.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ export default store => next => action => {
2222

2323
function shouldUpdateLocalStorage(actionType) {
2424
return /^VIEW_/.test(actionType)
25-
|| [actionNames.INIT_GUI_REPORT, actionNames.INIT_STATIC_REPORT].includes(actionType);
25+
|| [
26+
actionNames.INIT_GUI_REPORT,
27+
actionNames.INIT_STATIC_REPORT,
28+
actionNames.CHANGE_VIEW_MODE
29+
].includes(actionType);
2630
}

0 commit comments

Comments
 (0)