mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
pass the filtered cipher type when creating a new cipher (#11395)
This commit is contained in:
parent
02993f7018
commit
d7d7426431
@ -627,12 +627,14 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
async addCipher(cipherType?: CipherType) {
|
||||
const type = cipherType ?? this.activeFilter.cipherType;
|
||||
|
||||
if (this.extensionRefreshEnabled) {
|
||||
return this.addCipherV2(cipherType);
|
||||
return this.addCipherV2(type);
|
||||
}
|
||||
|
||||
const component = (await this.editCipher(null)) as AddEditComponent;
|
||||
component.type = cipherType || this.activeFilter.cipherType;
|
||||
component.type = type;
|
||||
if (
|
||||
this.activeFilter.organizationId !== "MyVault" &&
|
||||
this.activeFilter.organizationId != null
|
||||
|
Loading…
Reference in New Issue
Block a user