Skip to content

Commit

Permalink
Revert "#1991 FIX add unique query key for useQuery to fetch & update…
Browse files Browse the repository at this point in the history
… data when swapping between classifier"

This reverts commit 76637d0.
  • Loading branch information
naluinui committed May 23, 2024
1 parent 158fc04 commit 05f33e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/website/src/detect/_composables/use-get-detections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const FETCH_CLASSIFIER_JOB_INFO = 'fetch-classifier-job-info'

export const useGetJobDetections = (apiClient: AxiosInstance, params: ComputedRef<GetDetectionsQueryParams>, enabled: ComputedRef<boolean>, refetchInterval: ComputedRef<number | false>): UseQueryReturnType<WithTotalCount<GetDetectionsResponse>, unknown> => {
return useQuery({
queryKey: [FETCH_DETECTIONS, params.value.classifierId, params.value.classifierJobId, params.value.end, params.value.start, params.value.classification],
queryKey: [FETCH_DETECTIONS, params],
queryFn: async () => await apiBioGetDetections(apiClient, params.value),
enabled,
refetchInterval
Expand All @@ -30,7 +30,7 @@ export const useGetDetectionsSummary = (apiClient: AxiosInstance, params: Comput

export const useGetClassifierJobInfo = (apiClient: AxiosInstance, jobId: number, classifier: string): UseQueryReturnType<GetClassifierJobInfoByClassificationResponse, unknown> => {
return useQuery({
queryKey: [FETCH_CLASSIFIER_JOB_INFO, jobId, classifier],
queryKey: [FETCH_CLASSIFIER_JOB_INFO],
queryFn: async () => await apiBioGetClassifierJobInfoByClassification(apiClient, jobId, classifier)
})
}

0 comments on commit 05f33e5

Please sign in to comment.