From bec548e70ef8ff16d89b87e769e86a2de408d0d8 Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Thu, 20 Feb 2020 22:52:54 +0100 Subject: [PATCH] Fix problems edit --- client/src/views/Problems.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/views/Problems.vue b/client/src/views/Problems.vue index 152e455f..1e8ff689 100644 --- a/client/src/views/Problems.vue +++ b/client/src/views/Problems.vue @@ -322,7 +322,8 @@ export default { ); }, editProblem: function(prob) { - if (!prob.diag) this.setDiagram(prob); //V is loaded at this stage + // prob.diag might correspond to some other problem or be empty: + this.setDiagram(prob); //V is loaded at this stage this.copyProblem(prob, this.curproblem); window.doClick("modalNewprob"); }, -- 2.44.0