From 492a1924b2d47860421bef9f1b17e585edf00537 Mon Sep 17 00:00:00 2001 From: Greenscreener Date: Sat, 23 Jan 2021 11:20:45 +0100 Subject: [PATCH] =?UTF-8?q?Proper=20no=20=C5=BEalobce=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- form/res-judicata/src/components/edit/Guide.vue | 2 +- form/res-judicata/src/views/Edit.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/form/res-judicata/src/components/edit/Guide.vue b/form/res-judicata/src/components/edit/Guide.vue index f346b40..65495f2 100644 --- a/form/res-judicata/src/components/edit/Guide.vue +++ b/form/res-judicata/src/components/edit/Guide.vue @@ -268,7 +268,7 @@ export default { } // TODO: proper validation if (!this.hasZastoupeni) { - this.zaloba.zalobci[0].zastoupeni = null + this.zaloba.zalobci[0].zastoupen = null } this.zaloba.datum = this.zaloba.datum.toLocaleDateString('cs-CZ') this.$emit("zalobaguideclose",this.zaloba) diff --git a/form/res-judicata/src/views/Edit.vue b/form/res-judicata/src/views/Edit.vue index e6232b7..078d496 100644 --- a/form/res-judicata/src/views/Edit.vue +++ b/form/res-judicata/src/views/Edit.vue @@ -207,7 +207,7 @@ export default { text: `${e.sidlo.uliceacislopopisne}, ${e.sidlo.psc}, ${e.sidlo.mesto}`, style: "zalobce" }, - ...typeof e.zastoupen !== "undefined" ? [ + ...typeof e.zastoupen !== "undefined" && e.zastoupen !== null ? [ { text: "zastoupen: ", style: "zalobce" @@ -239,7 +239,7 @@ export default { text: `${e.sidlo.uliceacislopopisne}, ${e.sidlo.psc}, ${e.sidlo.mesto}`, style: "zalobce" }, - ...typeof e.zastoupen !== "undefined" ? [ + ...typeof e.zastoupen !== "undefined" && e.zastoupen !== null ? [ { text: "zastoupen: ", style: "zalobce"