rezo-labs / directus-extension-computed-interface

Perform computed value based on other fields
GNU General Public License v3.0
198 stars 27 forks source link

Decimal parseInt #73

Open cesarechazu opened 2 months ago

cesarechazu commented 2 months ago

Hello, when selecting a decimal value it is always converted to an integer value I find this in interface.vue

if (['integer', 'decimal', 'bigInteger'].includes(props.type)) { return parseInt(res) || 0; } if (['float'].includes(props.type)) { return parseFloat(res) || 0; }

I hope it is helpful, thank you

pedrofnts commented 2 weeks ago

This is preventing the use of the extension when working with monetary values.