Skip to content

Commit fca498b

Browse files
committed
chore: handle app update call in place of refresh
1 parent 5b572e5 commit fca498b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Icon,
99
logExceptionToSentry,
1010
noop,
11-
refresh,
1211
ToastManager,
1312
ToastVariantType,
1413
} from '@devtron-labs/devtron-fe-common-lib'
@@ -138,7 +137,7 @@ export const useVersionUpdateReload = ({ toastEligibleRoutes }: VersionUpdatePro
138137
return
139138
}
140139
if (document.visibilityState === 'visible') {
141-
refresh()
140+
handleAppUpdate()
142141
refreshing.current = true
143142
} else {
144143
if (typeof setBGUpdated !== 'function') return

0 commit comments

Comments
 (0)