Skip to content

Commit 35dc236

Browse files
authored
Merge pull request #29 from PADAS/28-v2-collection-fields
Add collection item fields
2 parents afed19f + 326f55e commit 35dc236

File tree

3 files changed

+325
-90
lines changed

3 files changed

+325
-90
lines changed

src/v2/generateUISchema.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ export const generateUISchema = (schema: V2Schema): JSONFormsUISchema => {
101101

102102
// Only create layout if section is active and has content
103103
if (section?.isActive && (hasFields || hasHeaders)) {
104-
const sectionControls = sectionFields.map(({ name, property, uiField }) =>
105-
createControl(name, property, uiField)
104+
const sectionControls = sectionFields.map(({ name, property, uiField }) =>
105+
createControl(name, property, uiField, schema)
106106
);
107-
107+
108108
const sectionLayout = createSectionLayout(sectionId, section, sectionControls, schema.ui.headers);
109109
sectionLayouts.push(sectionLayout);
110110
}

0 commit comments

Comments
 (0)