Resolve build error for abort request feature

This commit is contained in:
Kelani Tolulope
2023-08-21 13:24:19 +01:00
parent 5addb87b3b
commit 218a807b38
4 changed files with 9 additions and 20 deletions
@@ -52,6 +52,8 @@ export default {
},
beforeDestroy () {
this.setDefaultValues()
this.abortRequests.forEach((cancel) => {
cancel()
})
@@ -82,13 +84,7 @@ export default {
this.processing = false
})
},
},
beforeDestroy () {
this.setDefaultValues()
},
methods: {
setDefaultValues () {
this.processing = false
this.automationScripts = []
@@ -706,6 +706,9 @@ export default {
beforeDestroy () {
this.setDefaultValues()
this.abortRequests.forEach((cancel) => {
cancel()
})
},
beforeRouteUpdate (to, from, next) {
@@ -716,12 +719,6 @@ export default {
this.checkUnsavedModule(next)
},
beforeDestroy () {
this.abortRequests.forEach((cancel) => {
cancel()
})
},
methods: {
...mapActions({
findModuleByID: 'module/findByID',
@@ -231,6 +231,8 @@ export default {
},
beforeDestroy () {
this.setDefaultValues()
this.abortRequests.forEach((cancel) => {
cancel()
})
@@ -241,10 +243,6 @@ export default {
this.record = new compose.Record(this.module, { values: this.values })
},
beforeDestroy () {
this.setDefaultValues()
},
methods: {
createBlocks () {
this.fields.forEach(f => {
@@ -1063,6 +1063,8 @@ export default {
},
beforeDestroy () {
this.setDefaultValues()
this.abortRequests.forEach((cancel) => {
cancel()
})
@@ -1072,10 +1074,6 @@ export default {
this.fetchRoles()
},
beforeDestroy () {
this.setDefaultValues()
},
methods: {
...mapActions({
findPageByID: 'page/findByID',