diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 0529245c39..127e3a2a9a 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -2384,7 +2384,6 @@ class ListRecordView extends View { return selectProvider.getFromLayout(this.entityType, this.listLayout); } - /** * @protected */ @@ -2395,7 +2394,7 @@ class ListRecordView extends View { this._listSettingsHelper.getHiddenColumnMap() : {}; // noinspection JSIncompatibleTypesComparison - if (!this.listLayout || this.listLayout[Symbol.iterator] !== 'function') { + if (!this.listLayout || !Array.isArray(this.listLayout)) { return []; }