Skip to content

Commit

Permalink
feat(toolbox): fixed undefined for previous layout type
Browse files Browse the repository at this point in the history
  • Loading branch information
Calinteodor committed Dec 19, 2023
1 parent 7f87d4e commit 392c8e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions react/features/toolbox/subscriber.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ StateListenerRegistry.register(
isTileView: isLayoutTileView(state)
};
},
/* listener */({ clientHeight, isTileView }, store, { isTileView: previousIsTileView }) => {
if (!isTileView) {
/* listener */({ clientHeight, isTileView: previousIsTileView }, store) => {
const state = store.getState();

if (!isLayoutTileView(state)) {
if (previousIsTileView) {
store.dispatch(setShiftUp(false));
}
Expand Down

0 comments on commit 392c8e9

Please sign in to comment.