From 0d8943d86a4e5b41da45c3e6443fe220d01cfe6e Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 6 Jun 2024 11:17:00 +0300 Subject: [PATCH] cs --- client/src/views/user/record/detail.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/client/src/views/user/record/detail.js b/client/src/views/user/record/detail.js index 170daa0ab7..a5f36f08d8 100644 --- a/client/src/views/user/record/detail.js +++ b/client/src/views/user/record/detail.js @@ -321,12 +321,12 @@ class UserDetailRecordView extends DetailRecordView { } getGridLayout(callback) { - this.getHelper().layoutManager - .get(this.model.entityType, this.options.layoutName || this.layoutName, (simpleLayout) => { + const layoutName = this.options.layoutName || this.layoutName; - const layout = Espo.Utils.cloneDeep(simpleLayout); + this.getHelper().layoutManager.get(this.model.entityType, layoutName, simpleLayout => { + const layout = Espo.Utils.cloneDeep(simpleLayout); - if (!this.getUser().isPortal()) { + if (!this.getUser().isPortal()) { layout.push({ "label": "Teams and Access Control", "name": "accessControl", @@ -379,12 +379,12 @@ class UserDetailRecordView extends DetailRecordView { }); } - const gridLayout = { - type: 'record', - layout: this.convertDetailLayout(layout), - }; + const gridLayout = { + type: 'record', + layout: this.convertDetailLayout(layout), + }; - callback(gridLayout); + callback(gridLayout); }); }