mirror of
https://github.com/directus/directus.git
synced 2026-02-19 10:14:33 -05:00
Fix number formatting w/ decimals
This commit is contained in:
@@ -87,7 +87,9 @@ export default defineComponent({
|
||||
},
|
||||
});
|
||||
|
||||
metric.value = res.data.data[0][`${props.options.field}_${props.options.function}`];
|
||||
metric.value = Number(res.data.data[0][`${props.options.field}_${props.options.function}`]).toFixed(
|
||||
props.options.decimals
|
||||
);
|
||||
} catch (err) {
|
||||
// oh no
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user