projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix problems edit
[vchess.git]
/
client
/
src
/
views
/
Problems.vue
diff --git
a/client/src/views/Problems.vue
b/client/src/views/Problems.vue
index
152e455
..
1e8ff68
100644
(file)
--- a/
client/src/views/Problems.vue
+++ b/
client/src/views/Problems.vue
@@
-322,7
+322,8
@@
export default {
);
},
editProblem: function(prob) {
);
},
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");
},
this.copyProblem(prob, this.curproblem);
window.doClick("modalNewprob");
},