Fix task validation: send boolean for is_checked, omit file_path when null

This commit is contained in:
Kühn
2026-08-25 13:16:28 +02:00
parent dd095d9696
commit abb0617356

View File

@@ -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,
}; };
}); });