Skip to content

Commit

Permalink
update default includeAll param in getComponent to be true for layout…
Browse files Browse the repository at this point in the history
… components
  • Loading branch information
brendanbond committed Jan 30, 2025
1 parent 65cbe17 commit 39b066c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/__tests__/formUtil.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('formUtil', function () {
};
const component = getComponent(form.components, 'myPanel');
expect(component, 'Component should be found');
expect(component!.key).to.equal('panel');
expect(component!.key).to.equal('myPanel');
expect(component!.type).to.equal('panel');
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/formUtil/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ export function matchComponent(component: Component, query: any, paths?: Compone
export function getComponent(
components: Component[],
path: any,
includeAll: any = false,
includeAll: any = true,
dataIndex?: number, // The preferred last data index of the component to find.
): Component | undefined {
return getComponentFromPath(components, path, undefined, dataIndex, includeAll)?.component;
Expand Down

0 comments on commit 39b066c

Please sign in to comment.