Skip to content

Commit

Permalink
fix: ignore instance validation when field definition isnt registered
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaiir committed Apr 23, 2024
1 parent cc28231 commit 9e189cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/form-js-viewer/src/core/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export class Validator {
const { id, expressionContextInfo } = fieldInstance;

const field = this._formFieldRegistry.get(id);

if (!field) {
return [];
}

const { type, validate } = field;

let errors = [];
Expand Down

0 comments on commit 9e189cf

Please sign in to comment.