UI: Bugfix: VAULT-9343 fix key management key view bug (#18808)

* VAULT-9343 fix key management key view bug

* Add changelog

* Update changelog name

* Address feedback!

* Check if provider or key
This commit is contained in:
Kianna 2023-01-24 11:33:57 -08:00 committed by GitHub
parent e873d27e83
commit 375433923e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/18808.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: fixes keymgmt key details page
``

View File

@ -4,7 +4,7 @@ export function secretQueryParams([backendType, type = ''], { asQueryParams }) {
const values = {
transit: { tab: 'actions' },
database: { type },
keymgmt: { itemType: type || 'key' },
keymgmt: { itemType: type === 'provider' ? 'provider' : 'key' },
}[backendType];
// format required when using LinkTo with positional params
if (values && asQueryParams) {