mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
optimizations
This commit is contained in:
@@ -45,10 +45,10 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
this.folderId = params.folderId;
|
||||
}
|
||||
if (params.collectionId) {
|
||||
const collection = this.writeableCollections.filter((c) => c.id === params.collectionId);
|
||||
if (collection != null && collection.length > 0) {
|
||||
this.collectionIds = [collection[0].id];
|
||||
this.organizationId = collection[0].organizationId;
|
||||
const collection = this.writeableCollections.find((c) => c.id === params.collectionId);
|
||||
if (collection != null) {
|
||||
this.collectionIds = [collection.id];
|
||||
this.organizationId = collection.organizationId;
|
||||
}
|
||||
}
|
||||
if (params.type) {
|
||||
|
||||
Reference in New Issue
Block a user