Skip to content

Commit 744bbcf

Browse files
authored
Merge pull request #7329 from nextcloud/backport/7325/stable29
[stable29] Fix: Prevent error in Whiteboard when adding a Deckboard
2 parents 3e4b86f + dbb3da1 commit 744bbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/board/Board.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export default {
182182
await this.$store.dispatch('loadBoardById', this.id)
183183
await this.$store.dispatch('loadStacks', this.id)
184184
185-
const routeCardId = parseInt(this.$route.params.cardId)
185+
const routeCardId = this.$route?.params?.cardId ? parseInt(this.$route.params.cardId) : null
186186
// If an archived card is requested, and we cannot find it in the current we load the archived stacks instead
187187
if (routeCardId && !this.$store.getters.cardById(routeCardId)) {
188188
await this.$store.dispatch('loadArchivedStacks', this.id)

0 commit comments

Comments
 (0)