diff --git a/src/pages/WellOperations/WellSectionsStat.jsx b/src/pages/WellOperations/WellSectionsStat.jsx index 6ca03fe..8c89d18 100644 --- a/src/pages/WellOperations/WellSectionsStat.jsx +++ b/src/pages/WellOperations/WellSectionsStat.jsx @@ -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'),