Some (experimental) fixes
[vchess.git] / client / src / components / GameList.vue
index bc9e883..a8c0dab 100644 (file)
@@ -83,8 +83,6 @@ export default {
           if (!!g.myColor) g.priority++;
           if (!!g.myTurn) g.priority++;
         }
-        // TODO: remove patch soon
-        if (!g.options) g.options = {}
       });
       const deltaCreated = maxCreated - minCreated;
       return remGames.sort((g1, g2) => {
@@ -117,6 +115,8 @@ export default {
     },
     deleteGame: function(game, e) {
       if (
+        // Import ?
+        (typeof game.id == "string" && game.id.charAt(0) == 'i') ||
         // My game ?
         game.players.some(p =>
           p.sid == this.st.user.sid || p.id == this.st.user.id