[PM-5936] Add additional null organization checks (#7707)

This commit is contained in:
Shane Melton 2024-01-31 11:27:50 -08:00 committed by GitHub
parent 2511ae959a
commit 3cf17d1073
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@
</div>
<div *ngIf="filter.type !== 'trash' && filter.collectionId !== Unassigned" class="tw-shrink-0">
<div *ngIf="organization.canCreateNewCollections" appListDropdown>
<div *ngIf="organization?.canCreateNewCollections" appListDropdown>
<button
bitButton
buttonType="primary"
@ -108,7 +108,7 @@
</bit-menu>
</div>
<button
*ngIf="!organization.canCreateNewCollections"
*ngIf="!organization?.canCreateNewCollections"
type="button"
bitButton
buttonType="primary"

View File

@ -77,7 +77,7 @@ export class VaultHeaderComponent {
return this.i18nService.t("unassigned");
}
return `${this.organization.name} ${headerType}`;
return `${this.organization?.name} ${headerType}`;
}
protected get showBreadcrumbs() {