diff --git a/src/components/_shared/GrowingTextarea/GrowingTextarea.tsx b/src/components/_shared/GrowingTextarea/GrowingTextarea.tsx index fb757de0..dd5313f0 100644 --- a/src/components/_shared/GrowingTextarea/GrowingTextarea.tsx +++ b/src/components/_shared/GrowingTextarea/GrowingTextarea.tsx @@ -20,7 +20,7 @@ export const GrowingTextarea = (props: Props) => { createEffect(() => { if (props.maxLength && props.initialValue?.length > props.maxLength) { - setValue(props.initialValue.slice(0, props.maxLength)) + setValue(props.initialValue?.slice(0, props.maxLength)) } else { setValue(props.initialValue ?? '') } @@ -39,6 +39,8 @@ export const GrowingTextarea = (props: Props) => { } } + console.log('!!! initialValue:', props.initialValue) + return (