Skip to content

Commit

Permalink
fixed for pnp#1760
Browse files Browse the repository at this point in the history
  • Loading branch information
wu.xiaojun committed Feb 26, 2024
1 parent a52d646 commit 4e646e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/dynamicForm/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export class DynamicForm extends React.Component<

// When a field is required and has no value
if (field.required) {
if (field.newValue === null) {
if (field.newValue === undefined) {
if (
field.defaultValue === null ||
field.defaultValue === "" ||
Expand Down

0 comments on commit 4e646e5

Please sign in to comment.