Skip to content

Commit 438bea1

Browse files
committed
feat: enable update check based on configuration setting
1 parent bcc52e3 commit 438bea1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/components/SupportPage/data/useCheckUpdate.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import queryRequest from '@common/helpers/request'
2+
import config from '@config/config'
23
import { useQuery } from '@tanstack/react-query'
34

45
interface CheckUpdateResponse {
@@ -7,6 +8,7 @@ interface CheckUpdateResponse {
78

89
export default function useCheckUpdate() {
910
const { data, isLoading: isCheckingUpdates } = useQuery({
11+
enabled: config.IS_PRO_EXIST,
1012
queryFn: () =>
1113
queryRequest<CheckUpdateResponse>('pro_plugin/update-check', undefined, undefined, 'GET'),
1214
queryKey: ['update'],

0 commit comments

Comments
 (0)