Skip to content

Commit 5b572e5

Browse files
committed
chore: refresh function added inside handlAppUpdate
1 parent 17a8f03 commit 5b572e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/common/hooks/useVersionUpdate/useVersionUpdateReload.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Icon,
99
logExceptionToSentry,
1010
noop,
11+
refresh,
1112
ToastManager,
1213
ToastVariantType,
1314
} from '@devtron-labs/devtron-fe-common-lib'
@@ -137,6 +138,7 @@ export const useVersionUpdateReload = ({ toastEligibleRoutes }: VersionUpdatePro
137138
return
138139
}
139140
if (document.visibilityState === 'visible') {
141+
refresh()
140142
refreshing.current = true
141143
} else {
142144
if (typeof setBGUpdated !== 'function') return

0 commit comments

Comments
 (0)