Skip to content

Commit

Permalink
Merge pull request #479 from gemini-testing/users/shadowusr/fix-view-…
Browse files Browse the repository at this point in the history
…mode-ls

fix: update local storage on CHANGE_VIEW_MODE
  • Loading branch information
shadowusr committed Jun 26, 2023
2 parents 3bc5987 + a0db7d5 commit 5e94ad8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/static/modules/middlewares/local-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ export default store => next => action => {

function shouldUpdateLocalStorage(actionType) {
return /^VIEW_/.test(actionType)
|| [actionNames.INIT_GUI_REPORT, actionNames.INIT_STATIC_REPORT].includes(actionType);
|| [
actionNames.INIT_GUI_REPORT,
actionNames.INIT_STATIC_REPORT,
actionNames.CHANGE_VIEW_MODE
].includes(actionType);
}

0 comments on commit 5e94ad8

Please sign in to comment.