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 (#203)
  • Loading branch information
alexandraRamanenka authored Dec 16, 2024
1 parent 9e9ce40 commit a835499
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 a835499

Please sign in to comment.