From a302f08a7ccf983ebb781c578dd1fbd1b4f3ba27 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Tue, 19 Jul 2022 08:29:58 +0200 Subject: [PATCH] [EC-267] Remove unassigned from lists it is not suppsed to be in (#3102) * fix: remove unassigned from lists * fix: remove unnecessary filter --- .../organization-vault/organization-vault.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts b/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts index aaf37e97e4..1aee9a0a0a 100644 --- a/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts +++ b/apps/web/src/app/modules/vault/modules/organization-vault/organization-vault.component.ts @@ -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