feat: GBO-131702 Отобразить экран успеха после успешного сохранения
This commit is contained in:
@@ -45,9 +45,11 @@ export const MeetingRequest: React.FC = () => {
|
||||
const onSubmit = useFormSubmit<IMeetingForm>(
|
||||
async values => {
|
||||
const document = { ...values };
|
||||
|
||||
const res = await (document.id ? dealsCalendarService.update(document) : dealsCalendarService.create(document));
|
||||
|
||||
return { ...res, data: { ...res.data, custom: values?.custom } };
|
||||
// TODO: временно передаем свои же значения формы, чтобы наладить создание черновика.
|
||||
return { data: { ...values, id: res.data.id } };
|
||||
},
|
||||
values => sentRequest(values)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user