[EC-267] Remove unassigned from lists it is not suppsed to be in (#3102)
* fix: remove unassigned from lists * fix: remove unnecessary filter
This commit is contained in:
parent
4d5df858e9
commit
a302f08a7c
|
@ -211,7 +211,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||
if (this.organization.canEditAnyCollection) {
|
||||
comp.collectionIds = cipher.collectionIds;
|
||||
comp.collections = this.vaultFilterComponent.collections.fullList.filter(
|
||||
(c) => !c.readOnly
|
||||
(c) => !c.readOnly && c.id != null
|
||||
);
|
||||
}
|
||||
comp.organization = this.organization;
|
||||
|
@ -230,7 +230,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||
component.type = this.type;
|
||||
if (this.organization.canEditAnyCollection) {
|
||||
component.collections = this.vaultFilterComponent.collections.fullList.filter(
|
||||
(c) => !c.readOnly
|
||||
(c) => !c.readOnly && c.id != null
|
||||
);
|
||||
}
|
||||
if (this.collectionId != null) {
|
||||
|
@ -285,7 +285,7 @@ export class OrganizationVaultComponent implements OnInit, OnDestroy {
|
|||
component.organizationId = this.organization.id;
|
||||
if (this.organization.canEditAnyCollection) {
|
||||
component.collections = this.vaultFilterComponent.collections.fullList.filter(
|
||||
(c) => !c.readOnly
|
||||
(c) => !c.readOnly && c.id != null
|
||||
);
|
||||
}
|
||||
// Regardless of Admin state, the collection Ids need to passed manually as they are not assigned value
|
||||
|
|
Loading…
Reference in New Issue