3
0

Fix recordList destroyEvents

This commit is contained in:
Jože Fortun
2023-09-12 14:06:06 +02:00
parent 5dd03db924
commit 28980afd63

View File

@@ -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)
})
},