From: Benjamin Auder Date: Thu, 12 Mar 2020 16:33:54 +0000 (+0100) Subject: Fix games rendering X-Git-Url: https://git.auder.net/variants/img/current/assets/css/doc/index.css?a=commitdiff_plain;h=96aa6f038885b1c0bb04b71c59cb767553051fc8;p=vchess.git Fix games rendering --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 62826808..18a28366 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1041,11 +1041,8 @@ export default { }, game, ); - if (this.gameIsLoading) - // Re-load game because we missed some moves: - // artificially reset BaseGame (required if moves arrived in wrong order) - this.$refs["basegame"].re_setVariables(); - else { + this.$refs["basegame"].re_setVariables(this.game); + if (!this.gameIsLoading) { // Initial loading: this.gotMoveIdx = game.moves.length - 1; // If we arrive here after 'nextGame' action, the board might be hidden