From 251c05abf1d93f74e2dd8f41a6e9f2580afde108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Thu, 14 Sep 2023 14:17:06 +0200 Subject: [PATCH] Fix double event registration for RecordListBase --- .../compose/src/components/PageBlocks/RecordListBase.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/client/web/compose/src/components/PageBlocks/RecordListBase.vue b/client/web/compose/src/components/PageBlocks/RecordListBase.vue index 8e1b6fa1b..81d7cdb74 100644 --- a/client/web/compose/src/components/PageBlocks/RecordListBase.vue +++ b/client/web/compose/src/components/PageBlocks/RecordListBase.vue @@ -1036,10 +1036,6 @@ export default { }, }, - mounted () { - this.createEvents() - }, - beforeDestroy () { this.abortRequests() this.setDefaultValues() @@ -1063,10 +1059,7 @@ export default { // Set uniqueID so that events dont mix if (this.uniqueID) { - this.$root.$off(`record-line:collect:${this.uniqueID}`) - this.$root.$off(`page-block:validate:${this.uniqueID}`) - this.$root.$off(`drill-down-recordList:${this.uniqueID}`) - this.$root.$off(`refetch-non-record-blocks:${pageID}`) + this.destroyEvents() } this.uniqueID = [pageID, recordID, this.block.blockID, this.magnified].map(v => v || NoID).join('-')