Skip to content

Commit 7605ad3

Browse files
committed
fix: preselecting start date after when creating next period
1 parent 7207fb5 commit 7605ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/frontend/src/components/questionnaire/PeriodForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function PeriodForm({ onSave, actionLabel, period, startDate }: PeriodFor
5353
}, [period]);
5454

5555
useEffect(() => {
56-
if (startDate) f.reset();
56+
if (startDate) f.setValues({ range: [startDate, null] });
5757
}, [startDate]);
5858

5959
return (

0 commit comments

Comments
 (0)