Skip to content

Commit d1b3783

Browse files
authored
fix: retain environment order during zero apply (#280)
1 parent a0de2ed commit d1b3783

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/apply/apply.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,7 @@ func promptEnvironments() []string {
106106
"Both Staging and Production": {"stage", "prod"},
107107
}
108108

109-
var labels []string
110-
for label := range items {
111-
labels = append(labels, label)
112-
}
109+
labels := []string{"Staging", "Production", "Both Staging and Production"}
113110

114111
providerPrompt := promptui.Select{
115112
Label: "Environments",

0 commit comments

Comments
 (0)