forked from ddrilling/asb_cloud_front
Исправлено выведение значащих цифр координат
This commit is contained in:
parent
d40a4bf703
commit
54a9c6c5c5
@ -7,7 +7,7 @@ import { AdminDepositService } from '../../services/api'
|
||||
import { arrayOrDefault } from '../../utils'
|
||||
import { min1 } from '../../utils/validationRules'
|
||||
|
||||
export const coordsFixed = (coords) => coords?.toPrecision(10)
|
||||
export const coordsFixed = (coords) => coords && isFinite(coords) ? (+coords).toPrecision(10) : '-'
|
||||
|
||||
const depositColumns = [
|
||||
makeColumn('Название', 'caption', { width: 200, editable: true, formItemRules: min1 }),
|
||||
|
Loading…
Reference in New Issue
Block a user