Skip to content

Commit 03cce50

Browse files
author
Tim Roes
committed
refactor: remove dead instance_config options (#13891)
1 parent 3cf3aa5 commit 03cce50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

airbyte-webapp/src/core/api/hooks/instanceConfiguration.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ import { useSuspenseQuery } from "../useSuspenseQuery";
88

99
const QUERY_KEY_INSTANCE = "airbyte-instance";
1010

11-
export function useGetInstanceConfiguration(options?: { enabled?: boolean }) {
11+
export function useGetInstanceConfiguration() {
1212
// The instance configuration endpoint is not authenticated, so we don't need to pass any auth headers.
1313
// But because of how the API client is generated, we still need to pass an empty request options object.
1414
const emptyRequestOptions: ApiCallOptions = { getAccessToken: () => Promise.resolve(null) };
1515

1616
return useSuspenseQuery([QUERY_KEY_INSTANCE], () => getInstanceConfiguration(emptyRequestOptions), {
17-
enabled: options?.enabled,
1817
staleTime: Infinity, // This data should be fetched once and never updated
1918
});
2019
}

0 commit comments

Comments
 (0)