From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 20 Feb 2020 21:17:24 +0000 (+0100)
Subject: Fix problems ordering when uploading
X-Git-Url: https://git.auder.net/variants/img/pieces/css/img/R.css?a=commitdiff_plain;h=57b3f30ea30a2c6794da7995659985a186fcd4ea;p=vchess.git

Fix problems ordering when uploading
---

diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue
index eed343ac..152e455f 100644
--- a/client/src/views/Problems.vue
+++ b/client/src/views/Problems.vue
@@ -313,7 +313,7 @@ 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 = "";