Fix problems ordering when uploading
[vchess.git] / client / src / views / Problems.vue
index 1c99064..152e455 100644 (file)
@@ -313,10 +313,11 @@ export default {
             newProblem.id = ret.id;
             newProblem.uid = this.st.user.id;
             newProblem.uname = this.st.user.name;
-            this.problems = this.problems.concat(newProblem);
+            this.problems = [newProblem].concat(this.problems);
             this.resetCurProb();
           }
           this.infoMsg = "";
+          document.getElementById("modalNewprob").checked = false;
         }
       );
     },