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"