diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 051bf11..c54d73e 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -14,7 +14,7 @@ export const formatDate='YYYY.MM.DD HH:mm' export const makeNumericRender = (fixed?: number) => (value: any, row: object): ReactNode => { let val = '-' - if (value && Number.isFinite(+value)) { + if ((value ?? null) !== null && Number.isFinite(+value)) { val = !!fixed ? (+value).toFixed(fixed) : (+value).toPrecision(5)