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
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
1 changed files with 3 additions and 4 deletions

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