From c6b693857c34d706c94cc4dfeffa0d15c39eb783 Mon Sep 17 00:00:00 2001 From: goodmice Date: Wed, 15 Jun 2022 15:08:45 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B0=D1=80=D1=81=D0=B5=D1=80=D0=B0=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B4=D0=B0=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D1=80=D0=B0=D1=81=D0=BF=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B1=D1=83=D1=80=D0=B8=D0=BB=D1=8C=D1=89?= =?UTF-8?q?=D0=B8=D0=BA=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Telemetry/Operations/DrillerSchedule.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Telemetry/Operations/DrillerSchedule.jsx b/src/pages/Telemetry/Operations/DrillerSchedule.jsx index 50e8508..402ed7b 100644 --- a/src/pages/Telemetry/Operations/DrillerSchedule.jsx +++ b/src/pages/Telemetry/Operations/DrillerSchedule.jsx @@ -45,7 +45,7 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => { setScheduleModalVisible(false) }, []) - const newScheduleParser = useCallback((record) => ({ ...record, idWell }), [idWell]) + const recordParser = useCallback((record) => ({ ...record, idWell }), [idWell]) const isLoading = useMemo(() => loading || showLoader, [loading, showLoader]) @@ -61,11 +61,11 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => { } return { - add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', newScheduleParser }, - edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', newScheduleParser }, + add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', recordParser }, + edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', recordParser }, delete: { ...handlerProps, action: 'delete', actionName: 'Удаление расписания', permission: 'Schedule.delete' }, } - }, [updateSchedule, newScheduleParser]) + }, [updateSchedule, recordParser]) const scheduleColumns = useMemo(() => { const options = drillers.map(({ id, name, surname, patronymic }) => ({