From d7ed5b8f1178e634b4776c567fccc772da21b319 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 11 Oct 2021 13:57:02 +0200 Subject: [PATCH] fix: use correct listId when deleting bucket --- src/views/list/views/Kanban.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/list/views/Kanban.vue b/src/views/list/views/Kanban.vue index 2e23758c..5e47af42 100644 --- a/src/views/list/views/Kanban.vue +++ b/src/views/list/views/Kanban.vue @@ -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