mirror of
https://github.com/romancm/gamebrary
synced 2024-11-13 23:17:08 +00:00
clean up
This commit is contained in:
parent
1b86862799
commit
0f7680e0eb
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ export default {
|
|||
selectedList() {
|
||||
const { listIndex } = this.$route.query;
|
||||
|
||||
return this.selectedBoard.lists[listIndex];
|
||||
return this.selectedBoard?.lists?.[listIndex];
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -96,7 +96,7 @@ export default {
|
|||
const boardIndex = this.boards.findIndex(({ id }) => id === boardId);
|
||||
const board = this.boards[boardIndex];
|
||||
|
||||
board.lists[listIndex].games.push(this.game.id);
|
||||
board?.lists?.[listIndex]?.games.push(this.game.id);
|
||||
|
||||
try {
|
||||
await this.$store.dispatch('SAVE_GAME_BOARD', board);
|
||||
|
|
Loading…
Reference in a new issue