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 {
|
||||
step_id: s.id,
|
||||
value,
|
||||
is_checked: s.type === 'checkbox' ? (values[s.id] ? 1 : 0) : 0,
|
||||
file_path: null,
|
||||
value: value || '',
|
||||
is_checked: s.type === 'checkbox' ? !!values[s.id] : false,
|
||||
file_path: undefined,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user