mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 13:01:56 +00:00
chore: add credentials type to the url if exists
This commit is contained in:
@@ -84,7 +84,12 @@ export const ConnectAccountForm = () => {
|
||||
id,
|
||||
attributes: { provider },
|
||||
} = data.data;
|
||||
router.push(`/providers/add-credentials?provider=${provider}&id=${id}`);
|
||||
const credentialsParam = values.awsCredentialsType
|
||||
? `&via=${values.awsCredentialsType}`
|
||||
: "";
|
||||
router.push(
|
||||
`/providers/add-credentials?provider=${provider}&id=${id}${credentialsParam}`,
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user