diff --git a/packages/next/src/compat/FormItem.tsx b/packages/next/src/compat/FormItem.tsx index 4faac053352..52fe1051335 100644 --- a/packages/next/src/compat/FormItem.tsx +++ b/packages/next/src/compat/FormItem.tsx @@ -12,7 +12,7 @@ const computeStatus = (props: ICompatItemProps) => { if (props.invalid) { return 'error' } - if (props.warnings.length) { + if (props.warnings && props.warnings.length) { return 'warning' } }