Skip to content

Commit

Permalink
feat: Do not call profile-migration component if no Profile exists
Browse files Browse the repository at this point in the history
This is an optimization that prevent the profile-migration component to
be loaded if no `Profile` exists in the vault

This won't change anything for the user, but this would prevent
unnecessary checks that would occurs inside of the profile-migration
component
  • Loading branch information
Ldoppea committed Mar 29, 2024
1 parent 948f8af commit b3afde5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="sr-only">{{ "myVault" | i18n }}</h1>
<main tabindex="-1" cdk-scrollable>
<!-- Cozy customization, Profile migration -->
<app-profiles-migration
*ngIf="ciphers && ciphers.length"
*ngIf="ciphers && ciphers.length && this.typeCounts.get(cipherType.Identity) > 0"
[profilesCount]="this.typeCounts.get(cipherType.Identity) || 0"
></app-profiles-migration>
<!-- Cozy customization end -->
Expand Down

0 comments on commit b3afde5

Please sign in to comment.