summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.vue19
1 files changed, 11 insertions, 8 deletions
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 60d46307e8..94431845b0 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();
+ });
+ }
}
},