Skip to content

Commit

Permalink
added check for component.input
Browse files Browse the repository at this point in the history
  • Loading branch information
johnformio authored Jul 29, 2024
1 parent 67b33d7 commit d07453f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/formUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ export function getComponent(
): (Component | undefined) {
let result;
eachComponent(components, (component: Component, path: any) => {
if ((path === key) || (component.path === key) || (component.key === key)) {
if ((path === key) || (component.path === key) || (component.input && (component.key === key))) {
result = component;
return true;
}
Expand Down

0 comments on commit d07453f

Please sign in to comment.