Skip to content

Commit 073ce4a

Browse files
committed
fix(notifications): clear pending timers when notification stack empties
1 parent 373481a commit 073ce4a

File tree

1 file changed

+2
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/notifications

1 file changed

+2
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/notifications/notifications.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ export const Notifications = memo(function Notifications() {
176176
useEffect(() => {
177177
if (visibleNotifications.length === 0) {
178178
if (isPaused) setIsPaused(false)
179+
for (const timer of timersRef.current.values()) clearTimeout(timer)
180+
timersRef.current.clear()
179181
return
180182
}
181183
if (isPaused) return

0 commit comments

Comments
 (0)