Skip to content

Commit 6f007e4

Browse files
committed
fix(toast): narrow type for cToastClose
1 parent f9106c3 commit 6f007e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/app/views/notifications/toasters/toast-simple/toast.component.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</svg>
77
<strong>{{ title }}</strong>
88
</c-toast-header>
9-
<c-toast-body #toastBody [cToastClose]="toastBody.toast">
9+
<c-toast-body #toastBody [cToastClose]="toastBody.toast ?? undefined">
1010
<p class="mb-1">This is a dynamic toast no {{ toastBody.toast?.index() }} {{ toastBody.toast?.clock }}</p>
1111
<ng-content />
1212
<c-progress thin [value]="25*(toastBody.toast?.clock ?? 1)" />

0 commit comments

Comments
 (0)