X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FMyGames.vue;fp=client%2Fsrc%2Fviews%2FMyGames.vue;h=d30f5112a3d10f930b3c2cdf8ac6c64aac786fe0;hb=4f07d54fac76da08cc40d5742dd359b672c162d8;hp=3d86636ff3603c9e143eb19a5ee699123a1a2242;hpb=fc6d8c37cb0fa882041ca2690d63afeeb5099750;p=vchess.git diff --git a/client/src/views/MyGames.vue b/client/src/views/MyGames.vue index 3d86636f..d30f5112 100644 --- a/client/src/views/MyGames.vue +++ b/client/src/views/MyGames.vue @@ -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);