From: Benjamin Auder <benjamin.auder@somewhere>
Date: Fri, 20 Mar 2020 21:39:14 +0000 (+0100)
Subject: Fix bug when editing a problem
X-Git-Url: https://git.auder.net/variants/current/doc/css/img/assets/%3C?a=commitdiff_plain;h=970b6e201d86067b28d6c7cdf76a72787dc60872;p=vchess.git

Fix bug when editing a problem
---

diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue
index 2d5526d0..9ce2b3fe 100644
--- a/client/src/views/Problems.vue
+++ b/client/src/views/Problems.vue
@@ -371,7 +371,7 @@ export default {
           data: { prob: this.curproblem },
           success: (ret) => {
             if (edit) {
-              let editedP = this.problems.find(p => p.id == this.curproblem.id);
+              let editedP = this.problems["mine"].find(p => p.id == this.curproblem.id);
               this.copyProblem(this.curproblem, editedP);
               this.showProblem(editedP);
             }