From edc024fbb9758437323f2985f2af3e8e0c8db005 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 9 Nov 2023 10:18:30 +0200 Subject: [PATCH] fix --- client/src/views/record/list.js | 6 ++++++ 1 file changed, 6 insertions(+) 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;