Skip to content

Commit

Permalink
fix(packages/design-system): field can be undefined in TextareaField
Browse files Browse the repository at this point in the history
  • Loading branch information
rschlaefli committed Nov 25, 2024
1 parent 23e4958 commit 70db230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/design-system/src/forms/TextareaField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export function TextareaField({
</div>
{maxLength && !hideMaxLength && (
<div className="text-right text-sm italic">
{`${value?.length ?? field!.value.length} / ${maxLength} ${
{`${value?.length ?? field?.value.length ?? 0} / ${maxLength} ${
maxLengthUnit ?? ''
}`}
</div>
Expand Down

0 comments on commit 70db230

Please sign in to comment.