From 94c9801cae75a3f55d3e4aa38d9606fa48ae212a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 15 May 2020 11:09:24 +0200 Subject: [PATCH] Catch duplicate navigation error when navigating cards MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/cards/CardItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index d8f2a219d..16ed4950d 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -146,7 +146,7 @@ export default { }, methods: { openCard() { - this.$router.push({ name: 'card', params: { cardId: this.id } }) + this.$router.push({ name: 'card', params: { cardId: this.id } }).catch(() => {}) }, startEditing(card) { this.copiedCard = Object.assign({}, card)