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.
1 parent b614d53 commit fb5d2b9Copy full SHA for fb5d2b9
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