fix: use correct listId when deleting bucket

This commit is contained in:
Dominik Pschenitschni 2021-10-11 13:57:02 +02:00
parent dfe401a9dc
commit d7ed5b8f11
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -484,11 +484,10 @@ export default {
this.showBucketDeleteModal = true
},
deleteBucket() {
const bucket = new BucketModel({
this.$store.dispatch('kanban/deleteBucket', {bucket: {
id: this.bucketToDelete,
})
this.$store.dispatch('kanban/deleteBucket', {bucket: bucket, params: this.params})
listId: parseInt(this.$route.params.listId),
}, params: this.params})
.then(() => this.$message.success({message: this.$t('list.kanban.deleteBucketSuccess')}))
.finally(() => {
this.showBucketDeleteModal = false