From: Benjamin Auder Date: Thu, 20 Feb 2020 21:52:54 +0000 (+0100) Subject: Fix problems edit X-Git-Url: https://git.auder.net/variants/current/doc/css/app_dev.php/%7B%7B%20pkg.url%20%7D%7D?a=commitdiff_plain;h=bec548e70ef8ff16d89b87e769e86a2de408d0d8;p=vchess.git Fix problems edit --- 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"); },