X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;h=76879bced1536f94c031f6b66c6608b76bb2035a;hb=3aa0c7783242b063c9a2890bdd4cf2767859dfca;hp=3d86636ff3603c9e143eb19a5ee699123a1a2242;hpb=eaa5ad3e93b761fefb16b32071be0b439761f843;p=vchess.git diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 3d86636f..76879bce 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -88,7 +88,7 @@ export default { // st.variants changes only once, at loading from [] to [...] "st.variants": function() { // Set potential games variant names + display: - this.livesGames.concat(this.corrGames).concat(this.importGames) + this.liveGames.concat(this.corrGames).concat(this.importGames) .forEach(o => { if (!o.vname) this.setVname(o); }); @@ -384,7 +384,10 @@ export default { if (L > 0) { // Add "-1" because IDBKeyRange.upperBound includes boundary this.cursor["live"] = localGames[L - 1].created - 1; - localGames.forEach(g => g.type = "live"); + localGames.forEach(g => { + g.type = "live"; + if (!g.options) g.options = {}; //TODO: remove patch + }); this.decorate(localGames); this.liveGames = this.liveGames.concat(localGames); } @@ -400,6 +403,7 @@ export default { this.cursor["import"] = importGames[L - 1].created - 1; importGames.forEach(g => { g.type = "import"; + if (!g.options) g.options = {}; //TODO: remove patch this.setVname(g); }); this.importGames = this.importGames.concat(importGames);