Skip to content

Commit

Permalink
add some template null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphoeninger committed Oct 28, 2024
1 parent 3410687 commit f8cf91c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ <h2 class="heading">My Links</h2>
<ng-container matColumnDef="createdAt">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Created at</th>
<td mat-cell *matCellDef="let row">
{{ row.createdAt.toLocaleString() }}
{{ row.createdAt?.toLocaleString() }}
</td>
</ng-container>

<!-- ValidTo Column -->
<ng-container matColumnDef="validTo">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Valid To</th>
<td mat-cell *matCellDef="let row">
{{ row.validTo.toLocaleString() }}
{{ row.validTo?.toLocaleString() }}
</td>
</ng-container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h2 class="heading">My Uploads</h2>
<ng-container matColumnDef="lastChanged">
<th mat-header-cell *matHeaderCellDef mat-sort-header>Last changed</th>
<td mat-cell *matCellDef="let row">
{{ row.lastChanged.toLocaleString() }}
{{ row.lastChanged?.toLocaleString() }}
</td>
</ng-container>

Expand Down

0 comments on commit f8cf91c

Please sign in to comment.