Skip to content

Commit

Permalink
Bugfix: Missing 'required' property on component was interpreted as '…
Browse files Browse the repository at this point in the history
…true' (#658)

Co-authored-by: Ole Martin Handeland <git@olemartin.org>
  • Loading branch information
olemartinorg and Ole Martin Handeland authored Nov 15, 2022
1 parent 6084513 commit 393d258
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/altinn-app-frontend/src/utils/validation/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export function validateEmptyFieldsForNodes(
node.item.type === 'FileUpload' ||
node.item.type === 'FileUploadWithTag' ||
node.item.required === false ||
node.item.required === undefined ||
node.isHidden(hiddenFields)
) {
continue;
Expand Down

0 comments on commit 393d258

Please sign in to comment.