We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50403b9 + b02465a commit 89a18a2Copy full SHA for 89a18a2
src/components/board/Board.vue
@@ -179,7 +179,7 @@ export default {
179
await this.$store.dispatch('loadBoardById', this.id)
180
await this.$store.dispatch('loadStacks', this.id)
181
182
- const routeCardId = parseInt(this.$route.params.cardId)
+ const routeCardId = this.$route?.params?.cardId ? parseInt(this.$route.params.cardId) : null
183
// If an archived card is requested, and we cannot find it in the current we load the archived stacks instead
184
if (routeCardId && !this.$store.getters.cardById(routeCardId)) {
185
await this.$store.dispatch('loadArchivedStacks', this.id)
0 commit comments