Fix task validation: send boolean for is_checked, omit file_path when null
This commit is contained in:
@@ -182,9 +182,9 @@ export default function FillModal({ template, onSubmit, onClose }) {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
step_id: s.id,
|
step_id: s.id,
|
||||||
value,
|
value: value || '',
|
||||||
is_checked: s.type === 'checkbox' ? (values[s.id] ? 1 : 0) : 0,
|
is_checked: s.type === 'checkbox' ? !!values[s.id] : false,
|
||||||
file_path: null,
|
file_path: undefined,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user