mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
Fix issues with prop types that were causing errors to be logged during tests
This commit is contained in:
@@ -134,7 +134,8 @@ const FormikApp = withFormik({
|
||||
|
||||
FormikApp.propTypes = {
|
||||
onLaunch: PropTypes.func.isRequired,
|
||||
moduleOptions: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
moduleOptions: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string))
|
||||
.isRequired,
|
||||
verbosityOptions: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
onCloseWizard: PropTypes.func.isRequired,
|
||||
credentialTypeId: PropTypes.number.isRequired,
|
||||
|
||||
@@ -316,7 +316,8 @@ function AdHocDetailsStep({ i18n, verbosityOptions, moduleOptions }) {
|
||||
}
|
||||
|
||||
AdHocDetailsStep.propTypes = {
|
||||
moduleOptions: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
moduleOptions: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string))
|
||||
.isRequired,
|
||||
verbosityOptions: PropTypes.arrayOf(PropTypes.object).isRequired,
|
||||
};
|
||||
|
||||
|
||||
@@ -231,7 +231,7 @@ function InventoryHostList({ i18n }) {
|
||||
onClose={() => setIsAdHocCommandsOpen(false)}
|
||||
credentialTypeId={credentialTypeId}
|
||||
moduleOptions={moduleOptions}
|
||||
itemId={id}
|
||||
itemId={parseInt(id, 10)}
|
||||
/>
|
||||
)}
|
||||
{deletionError && (
|
||||
|
||||
@@ -239,6 +239,7 @@ function JobTemplateForm({
|
||||
isRequired={!askInventoryOnLaunchField.value}
|
||||
>
|
||||
<InventoryLookup
|
||||
fieldId="template-inventory"
|
||||
value={inventory}
|
||||
promptId="template-ask-inventory-on-launch"
|
||||
promptName="ask_inventory_on_launch"
|
||||
|
||||
Reference in New Issue
Block a user