From 088a4c62d81e0d5f4930ed58d7c2d57a1c7f3725 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 15 Dec 2025 10:26:50 +0100 Subject: [PATCH] fixed so that properties with "0" as value are shown correctly --- src/frontend/src/components/layout/config/Property.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/src/components/layout/config/Property.vue b/src/frontend/src/components/layout/config/Property.vue index 66417b0..805cb49 100644 --- a/src/frontend/src/components/layout/config/Property.vue +++ b/src/frontend/src/components/layout/config/Property.vue @@ -178,15 +178,16 @@ export default { } if (this.property.data_type === 'INT') { - this.value = parseNumberFromString(this.value, 0); + this.value = parseNumberFromString(this.value, 0, true); } if (this.property.data_type === 'PERCENTAGE') { - this.value = parseNumberFromString(this.value, 4); + this.value = parseNumberFromString(this.value, 4, true); } if (this.property.data_type === 'CURRENCY') { - this.value = parseNumberFromString(this.value, 2); + this.value = parseNumberFromString(this.value, 2, true); + console.log(this.property.name, " parsed from 'currency' property: '", this.value, "'") } } }