Skip to content

Commit

Permalink
fix: ensure field instance is established when run initial value vali…
Browse files Browse the repository at this point in the history
…dation
  • Loading branch information
Skaiir authored and vsgoulart committed Oct 24, 2024
1 parent e099f1a commit a15330c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form-js-viewer/src/render/components/FormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function FormField(props) {
useEffect(() => {
const hasInitialValue = initialValue && !isEqual(initialValue, []);

if (initialValidationTrigger && hasInitialValue) {
if (initialValidationTrigger && hasInitialValue && fieldInstance) {
setInitialValidationTrigger(false);
viewerCommands.updateFieldInstanceValidation(fieldInstance, initialValue);
}
Expand Down

0 comments on commit a15330c

Please sign in to comment.