Skip to content

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

fix(video-layout) fix getMaxColumnCount on mobile

Saúl Ibarra Corretgé0a6872733ec4
diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js
index eff1eaf2da..1161dae580 100644
--- a/react/features/video-layout/functions.js
+++ b/react/features/video-layout/functions.js
@@ -61,7 +61,9 @@ export function getCurrentLayout(state: Object) {
* @returns {number}
*/
export function getMaxColumnCount(state: Object) {
- const configuredMax = interfaceConfig.TILE_VIEW_MAX_COLUMNS || DEFAULT_MAX_COLUMNS;
+ const configuredMax = (typeof interfaceConfig === 'undefined'
+ ? DEFAULT_MAX_COLUMNS
+ : interfaceConfig.TILE_VIEW_MAX_COLUMNS) || DEFAULT_MAX_COLUMNS;
const { disableResponsiveTiles } = state['features/base/config'];
if (!disableResponsiveTiles) {