Skip to content

Commit

Permalink
Fix innerText still being undefined in ssr mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Sep 8, 2023
1 parent 3dc73f9 commit 0905a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/shared/log-in/log-in.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ds-themed-loading *ngIf="(loading | async) || (isAuthenticated | async)" class="m-5"></ds-themed-loading>
<div *ngIf="!(loading | async) && !(isAuthenticated | async)" class="px-4 py-3 mx-auto login-container">
<ng-container *ngFor="let authMethod of getOrderedAuthMethods(authMethods | async); let last = last">
<div [class.d-none]="contentRef.innerText.trim().length === 0">
<div [class.d-none]="contentRef.innerText?.trim().length === 0">
<div #contentRef>
<ds-log-in-container [authMethod]="authMethod" [isStandalonePage]="isStandalonePage"></ds-log-in-container>
</div>
Expand Down

0 comments on commit 0905a53

Please sign in to comment.