From cc73357fa9255224469ac3cfa7f0e58cb5f6424f Mon Sep 17 00:00:00 2001 From: Luka Trovic Date: Tue, 19 Apr 2022 12:21:33 +0200 Subject: [PATCH] fix: feedback Signed-off-by: Luka Trovic --- src/components/cards/CardMenu.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/cards/CardMenu.vue b/src/components/cards/CardMenu.vue index 4df722601..a067f39b6 100644 --- a/src/components/cards/CardMenu.vue +++ b/src/components/cards/CardMenu.vue @@ -169,10 +169,9 @@ export default { }, async moveCard() { this.copiedCard = Object.assign({}, this.card) - const boardId = this.card?.boardId ? this.card.boardId : this.$route.params.id this.copiedCard.stackId = this.selectedStack.id this.$store.dispatch('moveCard', this.copiedCard) - if (parseInt(boardId) === parseInt(this.selectedStack.boardId)) { + if (parseInt(this.boardId) === parseInt(this.selectedStack.boardId)) { await this.$store.commit('addNewCard', { ...this.copiedCard }) } this.modalShow = false