mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Fixes Invalid prop credential.id of type number supplied to CredentialEdit, expected object warning in CredentialEdit test
This commit is contained in:
parent
94b9892a1b
commit
04ca1cb1a3
@ -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 };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user