|
@@ -61,7 +61,9 @@ export function getCurrentLayout(state: Object) {
|
61
|
61
|
* @returns {number}
|
62
|
62
|
*/
|
63
|
63
|
export function getMaxColumnCount(state: Object) {
|
64
|
|
- const configuredMax = interfaceConfig.TILE_VIEW_MAX_COLUMNS || DEFAULT_MAX_COLUMNS;
|
|
64
|
+ const configuredMax = (typeof interfaceConfig === 'undefined'
|
|
65
|
+ ? DEFAULT_MAX_COLUMNS
|
|
66
|
+ : interfaceConfig.TILE_VIEW_MAX_COLUMNS) || DEFAULT_MAX_COLUMNS;
|
65
|
67
|
const { disableResponsiveTiles } = state['features/base/config'];
|
66
|
68
|
|
67
|
69
|
if (!disableResponsiveTiles) {
|