Skip to content

Commit 96a1c69

Browse files
committed
update: cleaning.
1 parent ef2621a commit 96a1c69

File tree

2 files changed

+10
-9
lines changed
  • src/routes/(console)/project-[region]-[project]/sites/create-site/repositories/repository-[repository]

2 files changed

+10
-9
lines changed

src/routes/(console)/project-[region]-[project]/sites/create-site/repositories/repository-[repository]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
.forProject(page.params.region, page.params.project)
6363
.vcs.createRepositoryDetection(
6464
$installation.$id,
65-
data.repository.id,
65+
page.params.repository,
6666
VCSDetectionType.Framework,
6767
rootDir
6868
);

src/routes/(console)/project-[region]-[project]/sites/create-site/repositories/repository-[repository]/+page.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import { buildVerboseDomain } from '../../store';
55
export const load = async ({ parent, params, url }) => {
66
const { installations, frameworks, project, organization, regionalConsoleVariables } =
77
await parent();
8-
const [repository] = await Promise.all([
9-
sdk
10-
.forProject(params.region, params.project)
11-
.vcs.getRepository(url.searchParams.get('installation'), params.repository)
12-
]);
8+
9+
const repository = await sdk
10+
.forProject(params.region, params.project)
11+
.vcs.getRepository(url.searchParams.get('installation'), params.repository);
12+
13+
const installation = installations.installations.find(
14+
(installation) => installation.$id === url.searchParams.get('installation')
15+
);
1316

1417
const domain = await buildVerboseDomain(
1518
regionalConsoleVariables._APP_DOMAIN_SITES,
@@ -21,9 +24,7 @@ export const load = async ({ parent, params, url }) => {
2124

2225
return {
2326
installations,
24-
installation: installations.installations.find(
25-
(installation) => installation.$id === url.searchParams.get('installation')
26-
),
27+
installation,
2728
repository,
2829
frameworks,
2930
domain

0 commit comments

Comments
 (0)