Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
orderAndFilterProperties(schema, uiSchema) {
const properties = Object.keys(schema.properties);
const orderedProperties = orderProperties(
properties,
_.get('ui:order', uiSchema),
);
const filteredProperties = orderedProperties.filter(
prop => !schema.properties[prop]['ui:hidden'],
);
const groupedProperties = _.groupBy(item => {
const expandUnderField = _.get(
[item, 'ui:options', 'expandUnder'],
uiSchema,
);
return expandUnderField || item;
}, filteredProperties);
return _.values(groupedProperties);
}
properties => orderProperties(properties, _.get('ui:order', this.props.uiSchema)),
_.groupBy((item) => {
properties =>
orderProperties(properties, _.get('ui:order', this.props.uiSchema)),
_.groupBy(item => {