From e778246e4ae8925f3d04962369a33a9c1a4b6589 Mon Sep 17 00:00:00 2001 From: Chris Villa Date: Sat, 18 Jan 2025 09:30:50 +0000 Subject: [PATCH] fix: handle null when provided to text/textarea/number fields --- .../core/components/AutoField/fields/DefaultField/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/components/AutoField/fields/DefaultField/index.tsx b/packages/core/components/AutoField/fields/DefaultField/index.tsx index 4095502ed..8fc534caf 100644 --- a/packages/core/components/AutoField/fields/DefaultField/index.tsx +++ b/packages/core/components/AutoField/fields/DefaultField/index.tsx @@ -9,12 +9,14 @@ export const DefaultField = ({ field, onChange, readOnly, - value, + value: _value, name, label, Label, id, }: FieldPropsInternal) => { + const value = _value as string | number | undefined | null; + return (