Skip to content

Commit

Permalink
FIO-9266/FIO-9267/FIO-9268: Fixes an issue where nested form validati…
Browse files Browse the repository at this point in the history
…on will be skipped if parent form submits empty data
  • Loading branch information
alexandraRamanenka committed Dec 12, 2024
1 parent 48565a4 commit 4ff1346
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/utils/formUtil/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,6 @@ export function getComponentLocalData(paths: ComponentPaths, data: any, local?:

export function shouldProcessComponent(comp: Component, row: any, value: any): boolean {
if (getModelType(comp) === 'dataObject') {
if (isEmpty(row)) {
return false;
}
const noReferenceAttached = value?._id ? isEmpty(value.data) && !has(value, 'form') : false;
const shouldBeCleared =
(!comp.hasOwnProperty('clearOnHide') || comp.clearOnHide) &&
Expand Down

0 comments on commit 4ff1346

Please sign in to comment.