From 70db2304f1bd3ba7c8975142a053988552a0f692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Schl=C3=A4fli?= Date: Mon, 25 Nov 2024 17:32:15 +0100 Subject: [PATCH] fix(packages/design-system): field can be undefined in TextareaField --- packages/design-system/src/forms/TextareaField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/design-system/src/forms/TextareaField.tsx b/packages/design-system/src/forms/TextareaField.tsx index cdf8b2f..2694f77 100644 --- a/packages/design-system/src/forms/TextareaField.tsx +++ b/packages/design-system/src/forms/TextareaField.tsx @@ -170,7 +170,7 @@ export function TextareaField({ {maxLength && !hideMaxLength && (
- {`${value?.length ?? field!.value.length} / ${maxLength} ${ + {`${value?.length ?? field?.value.length ?? 0} / ${maxLength} ${ maxLengthUnit ?? '' }`}