X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=ddfe1e7ec3969a1d5ff490c007139868c3387518;hp=5ab02fad5b1ef5389eaa48a82d457b70b9f49c95;hb=6e47d367d4b1b4500bc46d65b44c5e55b52221bb;hpb=383bf350afc0c2600f2774ebf8572398c072a5af diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 5ab02fad..ddfe1e7e 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -423,8 +423,7 @@ export default { const L = this.moves.length; if (!Array.isArray(this.moves[L-1])) this.$set(this.moves, L-1, [this.moves[L-1], smove]); - else - this.$set(this.moves, L-1, this.moves.concat([smove])); + else this.moves[L-1].push(smove); } }; const playMove = () => {