Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf7aec6

Browse files
committed
Clean FE
1 parent 0ea0a5c commit bf7aec6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

provisionersdk/proto/provisioner.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ message RichParameterOption {
2727

2828
// RichParameter represents a variable that is exposed.
2929
message RichParameter {
30-
reserved 14;
30+
reserved 14;
3131

3232
string name = 1;
3333
string description = 2;

site/src/api/api.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,18 +1175,12 @@ const getMissingParameters = (
11751175
const requiredParameters: TypesGen.TemplateVersionParameter[] = []
11761176

11771177
templateParameters.forEach((p) => {
1178-
// Legacy parameters should not be required. Backend can just migrate them.
1179-
const isLegacy = p.legacy_variable_name !== undefined
11801178
// It is mutable and required. Mutable values can be changed after so we
11811179
// don't need to ask them if they are not required.
11821180
const isMutableAndRequired = p.mutable && p.required
11831181
// Is immutable, so we can check if it is its first time on the build
11841182
const isImmutable = !p.mutable
11851183

1186-
if (isLegacy) {
1187-
return
1188-
}
1189-
11901184
if (isMutableAndRequired || isImmutable) {
11911185
requiredParameters.push(p)
11921186
return

0 commit comments

Comments
 (0)