1
0
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:
SmithThe4th
2025-07-18 14:09:19 -04:00
committed by GitHub
parent 5b1ddc9122
commit 367f7a108c

View File

@@ -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;
}