Исправлено название парсера редактирования расписания бурильщиков

This commit is contained in:
goodmice 2022-06-15 15:08:45 +05:00
parent fb0cc1637b
commit c6b693857c

View File

@ -45,7 +45,7 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => {
setScheduleModalVisible(false) setScheduleModalVisible(false)
}, []) }, [])
const newScheduleParser = useCallback((record) => ({ ...record, idWell }), [idWell]) const recordParser = useCallback((record) => ({ ...record, idWell }), [idWell])
const isLoading = useMemo(() => loading || showLoader, [loading, showLoader]) const isLoading = useMemo(() => loading || showLoader, [loading, showLoader])
@ -61,11 +61,11 @@ export const DrillerSchedule = memo(({ drillers, loading, onChange }) => {
} }
return { return {
add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', newScheduleParser }, add: { ...handlerProps, action: 'insert', actionName: 'Добавление расписания', recordParser },
edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', newScheduleParser }, edit: { ...handlerProps, action: 'update', actionName: 'Редактирование расписания', recordParser },
delete: { ...handlerProps, action: 'delete', actionName: 'Удаление расписания', permission: 'Schedule.delete' }, delete: { ...handlerProps, action: 'delete', actionName: 'Удаление расписания', permission: 'Schedule.delete' },
} }
}, [updateSchedule, newScheduleParser]) }, [updateSchedule, recordParser])
const scheduleColumns = useMemo(() => { const scheduleColumns = useMemo(() => {
const options = drillers.map(({ id, name, surname, patronymic }) => ({ const options = drillers.map(({ id, name, surname, patronymic }) => ({