Fix problems ordering when uploading
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 20 Feb 2020 21:17:24 +0000 (22:17 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 20 Feb 2020 21:17:24 +0000 (22:17 +0100)
client/src/views/Problems.vue

index eed343a..152e455 100644 (file)
@@ -313,7 +313,7 @@ export default {
             newProblem.id = ret.id;
             newProblem.uid = this.st.user.id;
             newProblem.uname = this.st.user.name;
             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 = "";
             this.resetCurProb();
           }
           this.infoMsg = "";