Skip to content

Commit

Permalink
chore: warning update
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 27, 2024
1 parent e1e2825 commit 2bebdb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function WrapperField<Values = any>({ name, ...restProps }: FieldProps<Values>)
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.');
Expand Down

0 comments on commit 2bebdb4

Please sign in to comment.