diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 89ede27898..0529245c39 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -2384,6 +2384,7 @@ class ListRecordView extends View { return selectProvider.getFromLayout(this.entityType, this.listLayout); } + /** * @protected */ @@ -2393,6 +2394,11 @@ class ListRecordView extends View { const hiddenMap = this._listSettingsHelper ? this._listSettingsHelper.getHiddenColumnMap() : {}; + // noinspection JSIncompatibleTypesComparison + if (!this.listLayout || this.listLayout[Symbol.iterator] !== 'function') { + return []; + } + for (const col of this.listLayout) { let width = false;