X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FProblems.vue;h=9ce2b3fe0445a82bbf2d3e320824808d64880e90;hb=970b6e201d86067b28d6c7cdf76a72787dc60872;hp=2d5526d01775c0edb4d401adcfe2735ac1daa9e2;hpb=df3eb77c621201c0367dc00bbbafd0f6685980ef;p=vchess.git 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); }