diff --git a/src/pages/AdminPanel/DepositController.jsx b/src/pages/AdminPanel/DepositController.jsx index 0006785..69e77fe 100644 --- a/src/pages/AdminPanel/DepositController.jsx +++ b/src/pages/AdminPanel/DepositController.jsx @@ -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 }), diff --git a/src/pages/AdminPanel/WellController/index.jsx b/src/pages/AdminPanel/WellController/index.jsx index bbf8199..43f8e5f 100644 --- a/src/pages/AdminPanel/WellController/index.jsx +++ b/src/pages/AdminPanel/WellController/index.jsx @@ -106,7 +106,7 @@ export const WellController = () => { const recordParser = (record) => ({ ...record, - idTelemetry: record.telemetry.id, + idTelemetry: record.telemetry?.id, }) const handlerProps = {