Skip to content

Commit 561f6c9

Browse files
committed
FIO-9467: Fix table component fails to render when inside wizard
1 parent e1f4d0a commit 561f6c9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Diff for: src/utils/formUtil/eachComponent.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ export function eachComponent(
4343
eachComponent(column.components, fn, includeAll, compPaths, component),
4444
);
4545
} else if (info.hasRows) {
46-
const comp = component.component || component;
47-
comp.rows.forEach((row: any) => {
46+
component.rows.forEach((row: any) => {
4847
if (Array.isArray(row)) {
4948
row.forEach((column) =>
5049
eachComponent(column.components, fn, includeAll, compPaths, component),

Diff for: src/utils/formUtil/index.ts

-3
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,6 @@ export function shouldProcessComponent(comp: Component, row: any, value: any): b
572572
}
573573

574574
export function componentInfo(component: any) {
575-
if (component.component) {
576-
return componentInfo(component.component);
577-
}
578575
const hasColumns = component.columns && Array.isArray(component.columns);
579576
const hasRows = component.rows && Array.isArray(component.rows);
580577
const hasComps = component.components && Array.isArray(component.components);

0 commit comments

Comments
 (0)