Skip to content

Commit 53568c8

Browse files
🛠️ apply pre-commit fixes
1 parent 9c87edf commit 53568c8

File tree

2 files changed

+28
-30
lines changed

2 files changed

+28
-30
lines changed

static/app/views/preprod/buildComparison/buildComparison.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,23 @@ export default function BuildComparison() {
3737
headArtifactId?: string;
3838
}>();
3939

40-
const headBuildDetailsQuery: UseApiQueryResult<BuildDetailsApiResponse, RequestError> =
41-
useApiQuery<BuildDetailsApiResponse>(
42-
[
43-
getApiUrl(
44-
'/organizations/$organizationIdOrSlug/preprodartifacts/$headArtifactId/build-details/',
45-
{
46-
path: {
47-
organizationIdOrSlug: organization.slug,
48-
headArtifactId: headArtifactId!,
49-
},
50-
}
51-
),
52-
],
53-
{
54-
staleTime: 0,
55-
enabled: !!headArtifactId,
56-
}
57-
);
40+
const headBuildDetailsQuery = useApiQuery<BuildDetailsApiResponse>(
41+
[
42+
getApiUrl(
43+
'/organizations/$organizationIdOrSlug/preprodartifacts/$headArtifactId/build-details/',
44+
{
45+
path: {
46+
organizationIdOrSlug: organization.slug,
47+
headArtifactId: headArtifactId!,
48+
},
49+
}
50+
),
51+
],
52+
{
53+
staleTime: 0,
54+
enabled: !!headArtifactId,
55+
}
56+
);
5857

5958
const compareUrl = getCompareApiUrl({
6059
organizationSlug: organization.slug,

static/app/views/preprod/buildComparison/main/sizeCompareSelectionContent.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,17 @@ export function SizeCompareSelectionContent({
8585
...(searchQuery && {query: searchQuery}),
8686
};
8787

88-
const buildsQuery: UseApiQueryResult<ListBuildsApiResponse, RequestError> =
89-
useApiQuery<ListBuildsApiResponse>(
90-
[
91-
getApiUrl(`/organizations/$organizationIdOrSlug/preprodartifacts/list-builds/`, {
92-
path: {organizationIdOrSlug: organization.slug},
93-
}),
94-
{query: queryParams},
95-
],
96-
{
97-
staleTime: 0,
98-
}
99-
);
88+
const buildsQuery = useApiQuery<ListBuildsApiResponse>(
89+
[
90+
getApiUrl(`/organizations/$organizationIdOrSlug/preprodartifacts/list-builds/`, {
91+
path: {organizationIdOrSlug: organization.slug},
92+
}),
93+
{query: queryParams},
94+
],
95+
{
96+
staleTime: 0,
97+
}
98+
);
10099

101100
const pageLinks = buildsQuery.getResponseHeader?.('Link') || null;
102101

0 commit comments

Comments
 (0)