mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Fixes Invalid prop credential.id of type number supplied to CredentialEdit, expected object warning in CredentialEdit test
This commit is contained in:
@@ -14,6 +14,7 @@ import ContentLoading from '../../../components/ContentLoading';
|
||||
import CredentialForm from '../shared/CredentialForm';
|
||||
import useRequest from '../../../util/useRequest';
|
||||
import { useConfig } from '../../../contexts/Config';
|
||||
import { Credential } from '../../../types';
|
||||
|
||||
function CredentialEdit({ credential }) {
|
||||
const history = useHistory();
|
||||
@@ -198,7 +199,7 @@ function CredentialEdit({ credential }) {
|
||||
}
|
||||
|
||||
CredentialEdit.propTypes = {
|
||||
credential: PropTypes.objectOf(PropTypes.object).isRequired,
|
||||
credential: Credential.isRequired,
|
||||
};
|
||||
|
||||
export { CredentialEdit as _CredentialEdit };
|
||||
|
||||
Reference in New Issue
Block a user