forked from ddrilling/asb_cloud_front
fix NaN in WellSectionsStat
This commit is contained in:
parent
04ce3f0ebf
commit
bf9d343570
@ -4,7 +4,12 @@ import { invokeWebApiWrapperAsync } from '../../components/factory'
|
|||||||
import { Table, makeColumn, makeColumnsPlanFact } from '../../components/Table'
|
import { Table, makeColumn, makeColumnsPlanFact } from '../../components/Table'
|
||||||
import { WellOperationStatService } from '../../services/api'
|
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 = [
|
const columns = [
|
||||||
makeColumn('Тип секции','sectionType'),
|
makeColumn('Тип секции','sectionType'),
|
||||||
|
Loading…
Reference in New Issue
Block a user