summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-08-03 22:49:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-08-03 22:49:54 +0900
commit5defcd6592dfb774eb430b44fb4e44eb29cf52bb (patch)
tree07fee3a945440e045305676390d1d2db22542f7a /src/client/app
parent:v: (diff)
downloadmisskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.tar.gz
misskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.tar.bz2
misskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.zip
:pizza:
Diffstat (limited to 'src/client/app')
-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();
+ });
+ }
}
},