Browse Source

fix: break synchronous execution of recursive function (#8772)

pull/8797/head
Anbarasu 6 months ago committed by GitHub
parent
commit
8f7ef4317b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/nc-gui/store/notification.ts

2
packages/nc-gui/store/notification.ts

@ -28,7 +28,7 @@ export const useNotification = defineStore('notificationStore', () => {
unreadCount.value = unreadCount.value + 1
}
await pollNotifications()
setTimeout(pollNotifications, 0)
} catch (e) {
// If network error, retry after 2 seconds
setTimeout(pollNotifications, 2000)

Loading…
Cancel
Save