Skip to content

Commit 8aa2a81

Browse files
committed
Add nullcheck for notifications
1 parent 6fe8bac commit 8aa2a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/notifications/src/component/Toasts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function Toasts({
9797
return newNotifs;
9898
}
9999

100-
if (notifToHide.notification.onHide) {
100+
if (notifToHide && notifToHide.notification.onHide) {
101101
notifToHide.notification.onHide();
102102
}
103103

0 commit comments

Comments
 (0)