fixed so that properties with "0" as value are shown correctly

This commit is contained in:
Jan 2025-12-15 10:26:50 +01:00
parent 4f24fd88bf
commit 088a4c62d8

View file

@ -178,15 +178,16 @@ export default {
} }
if (this.property.data_type === 'INT') { 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') { 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') { 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, "'")
} }
} }
} }