Add guards (#22)

This commit is contained in:
Thomas
2021-04-18 20:49:57 +02:00
committed by GitHub
parent c45bd70711
commit 3d34aa5e80
3 changed files with 11 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
<a href="https://dotsilver.ch">Thomas Kaul</a>.
<ng-container *ngIf="lastPublish">
This instance has been last published on {{ lastPublish
}}</ng-container
}}.</ng-container
>
</p>
<p>

View File

@@ -99,13 +99,13 @@
{{ userItem.createdAt | date: defaultDateFormat }}
</td>
<td class="mat-cell pr-2 py-2 text-truncate">
{{ userItem._count.Order }}
{{ userItem._count?.Order }}
</td>
<td class="mat-cell pr-2 py-2 text-truncate">
{{ userItem.Analytics.activityCount }}
{{ userItem.Analytics?.activityCount }}
</td>
<td class="mat-cell pr-2 py-2 text-truncate">
{{ formatDistanceToNow(userItem.Analytics.updatedAt) }}
{{ formatDistanceToNow(userItem.Analytics?.updatedAt) }}
</td>
</tr>
</tbody>