mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Add unique key prop to ansible select options
This commit is contained in:
parent
f3bf35311e
commit
a2a245c89e
@ -30,7 +30,7 @@ class AnsibleSelect extends React.Component {
|
||||
>
|
||||
{data.map((datum) => (
|
||||
<FormSelectOption
|
||||
key={datum.value}
|
||||
key={datum.key}
|
||||
value={datum.value}
|
||||
label={datum.label}
|
||||
isDisabled={datum.isDisabled}
|
||||
|
||||
@ -38,9 +38,9 @@ class TemplateForm extends Component {
|
||||
} = this.props;
|
||||
|
||||
const jobTypeOptions = [
|
||||
{ value: '', label: i18n._(t`Choose a job type`), isDisabled: true },
|
||||
{ value: 'run', label: i18n._(t`Run`), isDisabled: false },
|
||||
{ value: 'check', label: i18n._(t`Check`), isDisabled: false }
|
||||
{ value: '', key: '', label: i18n._(t`Choose a job type`), isDisabled: true },
|
||||
{ value: 'run', key: 'run', label: i18n._(t`Run`), isDisabled: false },
|
||||
{ value: 'check', key: 'check', label: i18n._(t`Check`), isDisabled: false }
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user