fixed so that properties with "0" as value are shown correctly
This commit is contained in:
parent
4f24fd88bf
commit
088a4c62d8
1 changed files with 4 additions and 3 deletions
|
|
@ -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, "'")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue