tile-view: fix number of columns calculation

This commit is contained in:
Paul Mestrum 2020-04-06 19:42:53 +02:00 committed by GitHub
parent 145596ac6a
commit b70633ef24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**