Skip to content

Commit ff0d2fe

Browse files
committed
chore: use constant in polling interval
1 parent 95e37ea commit ff0d2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/app/details/triggerView/TriggerView.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const PROGRESSING_POLLING_INTERVAL = 10000
1515

1616
export const useTriggerViewServices = ({ appId, isJobView, filteredEnvIds }: UseTriggerViewServicesParams) => {
1717
const queryClient = useQueryClient()
18-
const refetchIntervalRef = useRef<number>(30000)
18+
const refetchIntervalRef = useRef<number>(DEFAULT_POLLING_INTERVAL)
1919

2020
const { data: hostUrlConfig } = useQuery({
2121
queryKey: ['hostUrlConfig'],

0 commit comments

Comments
 (0)