diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.js index ab8ec3625..47c7bf1fa 100644 --- a/react/features/video-layout/functions.js +++ b/react/features/video-layout/functions.js @@ -31,7 +31,7 @@ export function getCurrentLayout(state: Object) { export function getMaxColumnCount() { const configuredMax = interfaceConfig.TILE_VIEW_MAX_COLUMNS || 5; - return Math.max(Math.min(configuredMax, 1), 5); + return Math.min(Math.max(configuredMax, 1), 5); } /**