From 28980afd6312b01dc42997f92123a3643e706c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Tue, 12 Sep 2023 14:06:06 +0200 Subject: [PATCH] Fix recordList destroyEvents --- .../compose/src/components/PageBlocks/RecordListBase.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/web/compose/src/components/PageBlocks/RecordListBase.vue b/client/web/compose/src/components/PageBlocks/RecordListBase.vue index 49713ec3f..8e1b6fa1b 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListBase.vue @@ -1871,10 +1871,10 @@ export default { destroyEvents () { const { pageID = NoID } = this.page - this.$root.$on(`record-line:collect:${this.uniqueID}`, this.resolveRecords) - this.$root.$on(`page-block:validate:${this.uniqueID}`, this.validatePageBlock) - this.$root.$on(`drill-down-recordList:${this.uniqueID}`, this.setDrillDownFilter) - this.$root.$on(`refetch-non-record-blocks:${pageID}`, () => { + this.$root.$off(`record-line:collect:${this.uniqueID}`, this.resolveRecords) + this.$root.$off(`page-block:validate:${this.uniqueID}`, this.validatePageBlock) + this.$root.$off(`drill-down-recordList:${this.uniqueID}`, this.setDrillDownFilter) + this.$root.$off(`refetch-non-record-blocks:${pageID}`, () => { this.refresh(true) }) },