webpack/scenes/Hosts/ChangeContentSource/components/FormField.js in katello-4.4.0.rc1 vs webpack/scenes/Hosts/ChangeContentSource/components/FormField.js in katello-4.4.0.rc2
- old
+ new
@@ -20,22 +20,22 @@
isDisabled={isLoading || items.length === 0 || contentHostsCount === 0}
id={`${id}_select`}
isRequired
>
<FormSelectOption key={0} value="" label={__('Select ...')} />
- { items.map(item => (
+ {items.map(item => (
<FormSelectOption key={item.id} value={item.id} label={item.name} />
- ))}
+ ))}
</FormSelect>
</FormGroup>
</GridItem>
);
FormField.propTypes = {
label: PropTypes.string.isRequired,
id: PropTypes.string.isRequired,
value: PropTypes.string.isRequired,
- items: PropTypes.arrayOf(PropTypes.object).isRequired,
+ items: PropTypes.arrayOf(PropTypes.shape({})).isRequired,
onChange: PropTypes.func.isRequired,
isLoading: PropTypes.bool.isRequired,
contentHostsCount: PropTypes.number.isRequired,
};