From abb0617356ad80577545d5221312d020b59048dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=BChn?= Date: Tue, 25 Aug 2026 13:16:28 +0200 Subject: [PATCH] Fix task validation: send boolean for is_checked, omit file_path when null --- frontend/src/components/FillModal.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/FillModal.jsx b/frontend/src/components/FillModal.jsx index e6a0c31..35afec2 100644 --- a/frontend/src/components/FillModal.jsx +++ b/frontend/src/components/FillModal.jsx @@ -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, }; });