Skip to content

Commit 2bebdb4

Browse files
committed
chore: warning update
1 parent e1e2825 commit 2bebdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ function WrapperField<Values = any>({ name, ...restProps }: FieldProps<Values>)
701701
if (
702702
process.env.NODE_ENV !== 'production' &&
703703
restProps.preserve === false &&
704-
restProps.isListField &&
704+
isMergedListField &&
705705
namePath.length <= 1
706706
) {
707707
warning(false, '`preserve` should not apply on Form.List fields.');

0 commit comments

Comments
 (0)