-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing in
null
value to CalendarDay field (#3245)
* Allow passing in `null` value to CalendarDay field * Update .changeset/lucky-buckets-carry.md Co-authored-by: Aman Singh <aman.singh@thinkmill.com.au> Co-authored-by: Mike <mike@madebymike.com.au>
- Loading branch information
1 parent
0cbb7e7
commit 4b95d8a
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@keystonejs/fields': patch | ||
--- | ||
|
||
Allow passing in the `null` value to the **CalendarDay**[https://www.keystonejs.com/keystonejs/fields/src/types/calendar-day/#calendarday] field type. | ||
|
||
Passing in the `null` value for **CalendarDay** field was throwing a `TypeError` inside the inputValidation method of CalendarDay. | ||
This fix allow passing the null value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters