Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
John Teague committed Jul 18, 2024
1 parent e3ab140 commit 273f2dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/process/conditions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const conditionalProcess = (context: ConditionsContext, isHidden: Conditi
// If this is a container component, we need to add all the child components as conditionally hidden as well.
Utils.eachComponentData([component], row, (comp: Component, data: any, compRow: any, compPath: string) => {
if (comp !== component) {
// the path set here is not the absolute path, but the path relative to the parent component
scope.conditionals?.push({ path: getComponentPath(comp, compPath), conditionallyHidden: true });
}
set(comp, 'hidden', true);
Expand Down

0 comments on commit 273f2dd

Please sign in to comment.