diff --git a/src/client/app/common/views/components/games/reversi/reversi.vue b/src/client/app/common/views/components/games/reversi/reversi.vue index 60d46307e..94431845b 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.vue @@ -46,14 +46,17 @@ export default Vue.extend({ watch: { gameId(id) { - console.log(id); - Progress.start(); - (this as any).api('games/reversi/games/show', { - gameId: id - }).then(game => { - this.nav(game, true); - Progress.done(); - }); + if (id == null) { + this.game = null; + } else { + Progress.start(); + (this as any).api('games/reversi/games/show', { + gameId: id + }).then(game => { + this.nav(game, true); + Progress.done(); + }); + } } },