forked from ddrilling/asb_cloud_front
Merge branch 'dev' into feature/CF2-72-AdminPanel
This commit is contained in:
commit
6ce6ba04ea
@ -14,7 +14,7 @@ export const formatDate='YYYY.MM.DD HH:mm'
|
|||||||
|
|
||||||
export const makeNumericRender = (fixed?: number) => (value: any, row: object): ReactNode => {
|
export const makeNumericRender = (fixed?: number) => (value: any, row: object): ReactNode => {
|
||||||
let val = '-'
|
let val = '-'
|
||||||
if (value && Number.isFinite(+value)) {
|
if ((value ?? null) !== null && Number.isFinite(+value)) {
|
||||||
val = !!fixed
|
val = !!fixed
|
||||||
? (+value).toFixed(fixed)
|
? (+value).toFixed(fixed)
|
||||||
: (+value).toPrecision(5)
|
: (+value).toPrecision(5)
|
||||||
|
Loading…
Reference in New Issue
Block a user