Created a dummy checklist object in report task page for sending it to API
This commit is contained in:
parent
af7001f563
commit
376b517486
@ -34,6 +34,18 @@ export const ReportTask = ({ report, closeModal, refetch }) => {
|
||||
...data,
|
||||
id: report?.id,
|
||||
reportedDate: new Date().toISOString(),
|
||||
checkList:[{
|
||||
Id:0,
|
||||
Check:"",
|
||||
IsMandatory: true,
|
||||
IsChecked:true,
|
||||
},
|
||||
{
|
||||
Id:0,
|
||||
Check:"",
|
||||
IsMandatory: true,
|
||||
IsChecked:false,
|
||||
}]
|
||||
};
|
||||
|
||||
let response = await TasksRepository.reportTsak(reportData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user