Skip to content

Commit 75fdc2f

Browse files
authored
Merge pull request #284 from scientist-softserv/hide-arrays-from-dynamic-forms
hide arrays from dynamic form
2 parents b0897ad + 7c3afbd commit 75fdc2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

utils/api/configurations.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,11 @@ export const configureDynamicFormSchema = (defaultSchema) => {
276276
adjustedProperty = { ...remainingProperties }
277277
}
278278

279-
propertyFields[key] = adjustedProperty
279+
if (value.type !== 'array') {
280+
// TODO(alishaevn): figure out the "items" property for arrays
281+
// ref: https://react-jsonschema-form.readthedocs.io/en/v1.8.1/form-customization/#form-customization
282+
propertyFields[key] = adjustedProperty
283+
}
280284
}
281285
})
282286

0 commit comments

Comments
 (0)