Commit 1f1f2f53 by Sergey

fix return

parent a765ef5b
......@@ -10,7 +10,7 @@ import {notification} from 'antd'
import {
CheckOutlined,
WarningOutlined,
CloseOutlined
CloseOutlined
} from "@ant-design/icons";
export const FeedbackWidget = ({
......@@ -95,6 +95,7 @@ export const FeedbackWidget = ({
setFooter(false);
setFileList([])
openNotification('Сохранено');
return response.data
} else {
formRef.resetFields();
setCompleted(false);
......@@ -102,6 +103,7 @@ export const FeedbackWidget = ({
setIsModalVisible(false);
setFileList([]);
openNotification('Ошибка', response.data.message, 'error');
return response.data
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment