diff options
Diffstat (limited to 'server/sonar-web/src/main/js/queries/branch.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/queries/branch.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/queries/branch.tsx b/server/sonar-web/src/main/js/queries/branch.tsx index 918f0801fa8..a58ac2ceef6 100644 --- a/server/sonar-web/src/main/js/queries/branch.tsx +++ b/server/sonar-web/src/main/js/queries/branch.tsx @@ -109,6 +109,7 @@ function getContext(key: ReturnType<typeof useBranchesQueryKey>) { export function useBranchesQuery(component?: LightComponent, refetchInterval?: number) { const features = useContext(AvailableFeaturesContext); const key = useBranchesQueryKey(InnerState.Details, component?.key); + return useQuery({ queryKey: key, queryFn: async ({ queryKey: [, key, prOrBranch, name] }) => { |