X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=0973d32c25ae0a68ab5e48ea9a1f692f5714e0fd;hb=dac395887d96e2d642b209c6db6aaacc3ffacb34;hp=607925422e998d89c1006c54fb69f379e5499f3c;hpb=0b0dc040acd01ff1855b159c2933cb2eff73b26d;p=vchess.git diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 60792542..0973d32c 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -25,14 +25,15 @@ export default { data: function() { return { st: store.state, - display: "live", + display: "live", games: [], }; }, created: function() { GameStorage.getAll((localGames) => { localGames.forEach((g) => g.type = this.classifyObject(g)); - Array.prototype.push.apply(this.games, localGames); + //Array.prototype.push.apply(this.games, localGames); /TODO: Vue3... + this.games = this.games.concat(localGames); }); if (this.st.user.id > 0) { @@ -57,7 +58,3 @@ export default { }, }; - -