Skip to content

Commit 0cbdea7

Browse files
committed
Merge branch 'mes/vendored-sdk-integration' into mes/vendored-sdk-helpers
2 parents 9038850 + 09240cc commit 0cbdea7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

plugins/backstage-plugin-coder/src/components/CoderWorkspacesCard/useCoderWorkspacesQuery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function useCoderWorkspacesQuery({
1313
coderQuery,
1414
workspacesConfig,
1515
}: QueryInput) {
16-
const auth = useInternalCoderAuth();
1716
const sdk = useCoderSdk();
17+
const auth = useInternalCoderAuth();
1818
const hasRepoData = workspacesConfig && workspacesConfig.repoUrl;
1919

2020
const queryOptions = hasRepoData

plugins/backstage-plugin-coder/src/hooks/useCoderSdk.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@
22
* @file This defines the general helper for accessing the Coder SDK from
33
* Backstage in a type-safe way.
44
*
5-
* This hook is meant to be used both internally AND externally. It exposes some
6-
* auth helpers to make end users' lives easier, but all of them go through
7-
* useEndUserCoderAuth. If building any internal components, be sure to have a
8-
* call to useInternalCoderAuth somewhere, to make sure that the component
9-
* interfaces with the fallback auth UI inputs properly.
10-
*
11-
* See CoderAuthProvider.tsx for more info.
5+
* This hook is meant to be used both internally AND externally.
126
*/
137
import { useApi } from '@backstage/core-plugin-api';
148
import { coderClientApiRef, type BackstageCoderSdk } from '../api/CoderClient';

0 commit comments

Comments
 (0)