Skip to content

Commit 4f09708

Browse files
committed
chore: parse interval to number
1 parent 6d3fe69 commit 4f09708

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/app/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ export const useGetDTAppDetails = ({ appId, envId }: UseGetDTAppDetailsParams):
9595
enabled: !!appId && !!envId,
9696
refetchInterval: (data, query) =>
9797
// In case query failed and no data is available previously, stop polling and show error state
98-
!data && query.state.status === 'error' ? false : window._env_.DEVTRON_APP_DETAILS_POLLING_INTERVAL,
98+
!data && query.state.status === 'error' ? false : Number(window._env_.DEVTRON_APP_DETAILS_POLLING_INTERVAL),
9999
onSuccess: async (data) => {
100-
// Publish app details to IndexStore if there is resource tree is not to be fetched
100+
// Publish app details to IndexStore if resource tree is not to be fetched
101101
if (!data?.isPipelineTriggered && data?.releaseMode === ReleaseMode.NEW_DEPLOYMENT) {
102102
IndexStore.publishAppDetails(
103103
{

0 commit comments

Comments
 (0)