File tree 1 file changed +1
-2
lines changed
airbyte-webapp/src/core/api/hooks
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ import { useSuspenseQuery } from "../useSuspenseQuery";
8
8
9
9
const QUERY_KEY_INSTANCE = "airbyte-instance" ;
10
10
11
- export function useGetInstanceConfiguration ( options ?: { enabled ?: boolean } ) {
11
+ export function useGetInstanceConfiguration ( ) {
12
12
// The instance configuration endpoint is not authenticated, so we don't need to pass any auth headers.
13
13
// But because of how the API client is generated, we still need to pass an empty request options object.
14
14
const emptyRequestOptions : ApiCallOptions = { getAccessToken : ( ) => Promise . resolve ( null ) } ;
15
15
16
16
return useSuspenseQuery ( [ QUERY_KEY_INSTANCE ] , ( ) => getInstanceConfiguration ( emptyRequestOptions ) , {
17
- enabled : options ?. enabled ,
18
17
staleTime : Infinity , // This data should be fetched once and never updated
19
18
} ) ;
20
19
}
You can’t perform that action at this time.
0 commit comments