fix NaN in WellSectionsStat

This commit is contained in:
Фролов 2021-08-29 12:14:10 +05:00
parent 04ce3f0ebf
commit bf9d343570

View File

@ -4,7 +4,12 @@ import { invokeWebApiWrapperAsync } from '../../components/factory'
import { Table, makeColumn, makeColumnsPlanFact } from '../../components/Table'
import { WellOperationStatService } from '../../services/api'
const makeNumberRender = (format) => ((value) => (+value).toFixed(format))
const makeNumberRender = format => value => {
const v = +value
if(Number.isFinite(v))
return v.toFixed(format)
return '-'
}
const columns = [
makeColumn('Тип секции','sectionType'),