Commit d926cc2
authored
fix: enforce date validation for custom sections in edit mode (#1260)
Remove isEditMode bypass for start and end date validation. This ensures
scheduled or live sections always have dates on or after today, even when
editing existing sections, and validates manually typed dates that bypass
the date picker's minDate constraint.1 parent 8f3feeb commit d926cc2
File tree
1 file changed
+5
-5
lines changed- src/curated-corpus/components/CustomSectionForm
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments