Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(toolbox): fixed undefined for previous layout type

Calin-Teodor392c8e9aa889
diff --git a/react/features/toolbox/subscriber.web.ts b/react/features/toolbox/subscriber.web.ts
index 3e7405cb20..0531b36749 100644
--- a/react/features/toolbox/subscriber.web.ts
+++ b/react/features/toolbox/subscriber.web.ts
@@ -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));
}