X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FHall.vue;h=c3c812820e968c2dae1af62746e3459d70154aff;hp=98c52c5da1e7747d898201918fdc20d319ebd276;hb=ce37466ee16c39bf19832524793a23d40915de93;hpb=4665d3c6b2d9a7d1f1254690e63531a45f2305a4 diff --git a/client/src/views/Hall.vue b/client/src/views/Hall.vue index 98c52c5d..c3c81282 100644 --- a/client/src/views/Hall.vue +++ b/client/src/views/Hall.vue @@ -1096,7 +1096,7 @@ export default { return; } window.V = this.newchallenge.V; - let chall = Object.assign({ options: {} }, this.newchallenge); + let chall = Object.assign({}, this.newchallenge, { options: {} }); // Get/set options variables (if any) / TODO: v-model?! for (const check of this.newchallenge.V.Options.check || []) { const elt = document.getElementById(check.variable + "_opt"); @@ -1216,8 +1216,10 @@ export default { "POST", { data: { - chall: Object.assign({}, - chall, { options: JSON.stringify(chall.options) } + chall: Object.assign( + {}, + chall, + { options: JSON.stringify(chall.options) } ) }, success: (response) => {