From d40a4bf70345d2acaec2fc1f4d93d574758df23c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 20 Jan 2022 15:52:44 +0500 Subject: [PATCH] Fix admin well controller .recordParser null ref. exception --- src/pages/AdminPanel/WellController/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {