diff --git a/client/src/views/record/panels-container.js b/client/src/views/record/panels-container.js index 9ab81d77c1..a2b3211b1d 100644 --- a/client/src/views/record/panels-container.js +++ b/client/src/views/record/panels-container.js @@ -662,6 +662,10 @@ class PanelsContainerRecordView extends View { */ this.tabDataList = tabDataList.sort((v1, v2) => v1.index - v2.index); + this.panelList = this.panelList.filter(item => { + return !this.recordHelper.getPanelStateParam(item.name, 'hiddenLocked'); + }); + let newList = []; this.panelList.forEach((item, i) => { @@ -787,10 +791,6 @@ class PanelsContainerRecordView extends View { this.panelList.splice(index, 1); } - this.panelList = this.panelList.filter((p) => { - return !this.recordHelper.getPanelStateParam(p.name, 'hiddenLocked'); - }); - this.panelsAreSet = true; this.trigger('panels-set');