Skip to content

Commit

Permalink
Merge pull request #12293 from Budibase/budi-7736-relationship-picker…
Browse files Browse the repository at this point in the history
…-required-validation-fires-immediately

Don't trigger required validation early
  • Loading branch information
shogunpurple authored Nov 6, 2023
2 parents 6a76fb4 + 8c72ad5 commit 3b5a9e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@
typeof value === "object" ? value._id : value
)
// Make sure field state is valid
fieldApi.setValue(values)
if (values?.length > 0) {
fieldApi.setValue(values)
}
return values
}
Expand Down

0 comments on commit 3b5a9e0

Please sign in to comment.