mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
refactor(FE-316): Use single file field and remove unused IDs
This commit is contained in:
@@ -225,14 +225,13 @@ const UniformityForm = ({
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append('date', values.date);
|
||||
formData.append('location_id', values.location_id.toString());
|
||||
formData.append(
|
||||
'project_flock_kandang_id',
|
||||
projectFlockKandangId.toString()
|
||||
);
|
||||
|
||||
if (values.files) {
|
||||
formData.append('files[]', values.files);
|
||||
formData.append('file', values.files);
|
||||
}
|
||||
|
||||
const res = await UniformityApi.create(
|
||||
|
||||
Reference in New Issue
Block a user