From 2bebdb4ce3e2e39d1e9eac6d7bbe6b6f960408c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 27 Nov 2024 16:43:50 +0800 Subject: [PATCH] chore: warning update --- src/Field.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field.tsx b/src/Field.tsx index 0a3a962d..bfb650ce 100644 --- a/src/Field.tsx +++ b/src/Field.tsx @@ -701,7 +701,7 @@ function WrapperField({ name, ...restProps }: FieldProps) if ( process.env.NODE_ENV !== 'production' && restProps.preserve === false && - restProps.isListField && + isMergedListField && namePath.length <= 1 ) { warning(false, '`preserve` should not apply on Form.List fields.');