diff --git a/src/components/Board/BoardPlaceholder.vue b/src/components/Board/BoardPlaceholder.vue index 0b0b701e..5d54cb02 100644 --- a/src/components/Board/BoardPlaceholder.vue +++ b/src/components/Board/BoardPlaceholder.vue @@ -33,8 +33,20 @@ export default { Placeholder, }, + data() { + return { + board: {}, + }; + }, + computed: { - ...mapState(['board']), + ...mapState(['boards']), + }, + + mounted() { + const boardId = this.$route.params.id; + + this.board = this.boards.find(({ id }) => id === boardId); }, };