It seems like we all forgot that this component existed some time ago. It needed two changes to account for changes we've made in the codebase since it was created.
change defaultValue prop to initialValue when it uses TimeInput
this prop was renamed at some point and the lack of an initialValue was causing the edit form to crash
update the initial value for description to include an empty Slate paragraph
the previous default of an empty array ([]) caused Slate to crash, as it expects at least one node to always exist
Summary
It seems like we all forgot that this component existed some time ago. It needed two changes to account for changes we've made in the codebase since it was created.
defaultValue
prop toinitialValue
when it usesTimeInput
initialValue
was causing the edit form to crashdescription
to include an empty Slate paragraph[]
) caused Slate to crash, as it expects at least one node to always exist