Fix bug when editing a problem
authorBenjamin Auder <benjamin.auder@somewhere>
Fri, 20 Mar 2020 21:39:14 +0000 (22:39 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Fri, 20 Mar 2020 21:39:14 +0000 (22:39 +0100)
client/src/views/Problems.vue

index 2d5526d..9ce2b3f 100644 (file)
@@ -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);
             }