From 970b6e201d86067b28d6c7cdf76a72787dc60872 Mon Sep 17 00:00:00 2001 From: Benjamin Auder <benjamin.auder@somewhere> Date: Fri, 20 Mar 2020 22:39:14 +0100 Subject: [PATCH] Fix bug when editing a problem --- client/src/views/Problems.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.44.0