Fix report creation form

This commit is contained in:
Viet Anh Nguyen 2024-03-07 11:02:41 +07:00
parent b10d10edcb
commit 01596e3222

View File

@ -35,7 +35,6 @@ const ReportsPage = () => {
})
.then((data) => {
if (!!data && data?.report_id) {
form.resetFields();
setIsModalOpen(false);
window.location.reload();
}
@ -53,8 +52,6 @@ const ReportsPage = () => {
setIsModalOpen(false);
};
form.setFieldsValue({reportType: "accuracy"})
return (
<>
<SbtPageHeader
@ -111,6 +108,7 @@ const ReportsPage = () => {
message: 'Please select a subsidiary',
},
]}
initialValue={'SEAO'}
>
<Select
placeholder='Select a subsidiary'
@ -136,16 +134,15 @@ const ReportsPage = () => {
message: 'Please select a type',
},
]}
initialValue={'accuracy'}
>
<Select
placeholder='Select a report type'
style={{ width: 200 }}
options={[
{ value: 'billing', label: 'billing' },
{ value: 'accuracy', label: 'accuracy' },
{ value: 'billing', label: 'Billing' },
{ value: 'accuracy', label: 'Accuracy' },
]}
// defaultValue='accuracy'
/>
</Form.Item>
</Form>