Skip to content

Commit baae8c6

Browse files
authored
Error rapidly clicking "Mark as Done" (#6951)
Fixes #6922
1 parent a19b440 commit baae8c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/notifications/notificationItem.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export interface NotificationTreeItem {
2020
readonly kind: 'notification';
2121
}
2222

23-
export function isNotificationTreeItem(item: any): item is NotificationTreeItem {
24-
return item.kind === 'notification';
23+
export function isNotificationTreeItem(item: unknown): item is NotificationTreeItem {
24+
return !!item && (item as Partial<NotificationTreeItem>).kind === 'notification';
2525
}

0 commit comments

Comments
 (0)