mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 21:33:27 +00:00
Exclude Linked field type for ssh keys (#15662)
This commit is contained in:
@@ -71,8 +71,11 @@ export class AddEditCustomFieldDialogComponent {
|
||||
if (this.data.disallowHiddenField && option.value === FieldType.Hidden) {
|
||||
return false;
|
||||
}
|
||||
// Filter out the Linked field type for Secure Notes
|
||||
if (this.data.cipherType === CipherType.SecureNote) {
|
||||
// Filter out the Linked field type for Secure Notes and SSH Keys
|
||||
if (
|
||||
this.data.cipherType === CipherType.SecureNote ||
|
||||
this.data.cipherType === CipherType.SshKey
|
||||
) {
|
||||
return option.value !== FieldType.Linked;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user