Skip to content

Commit

Permalink
Make textfield value optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Jan 28, 2025
1 parent 4de0d58 commit c90d4b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const TextFieldInput: React.FC<Props<TextField>> = (props) => {
{characterCountLimit && (
<CharacterCounter
textInputType={data.type || TextInputType.Long}
count={fieldProps.value.length}
count={fieldProps?.value?.length}
error={Boolean(fieldProps.errorMessage)}
/>
)}
Expand Down

0 comments on commit c90d4b0

Please sign in to comment.