Skip to content

Commit 8cf4b15

Browse files
committed
cleanup
1 parent 1e41500 commit 8cf4b15

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

site/src/api/api.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1255,14 +1255,18 @@ const getMissingParameters = (
12551255

12561256
// If not, get the old one
12571257
if (!buildParameter) {
1258-
buildParameter = oldBuildParameters.find((p) => p.name === templateParameter.name)
1258+
buildParameter = oldBuildParameters.find(
1259+
(p) => p.name === templateParameter.name,
1260+
)
12591261
}
12601262

12611263
if (!buildParameter) {
12621264
return
12631265
}
12641266

1265-
const matchingOption = templateParameter.options.find(option => option.value === buildParameter?.value);
1267+
const matchingOption = templateParameter.options.find(
1268+
(option) => option.value === buildParameter?.value,
1269+
)
12661270
if (!matchingOption) {
12671271
missingParameters.push(templateParameter)
12681272
}

site/src/xServices/createTemplate/createTemplateXService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,7 @@ export const createTemplateMachine =
517517
isNotUsingExample: ({ exampleId }) => !exampleId,
518518
hasFile: ({ file }) => Boolean(file),
519519
hasFailed: (_, { data }) =>
520-
Boolean(
521-
data.job.status === "failed" &&
522-
!isMissingVariables(data),
523-
),
520+
Boolean(data.job.status === "failed" && !isMissingVariables(data)),
524521
hasNoParametersOrVariables: (_, { data }) =>
525522
data.variables === undefined,
526523
hasParametersOrVariables: (_, { data }) => {

0 commit comments

Comments
 (0)