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 }) => ({