Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix: generate wrong group order
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwantaozi authored and gitlawr committed Nov 23, 2023
1 parent abc217a commit 984a6c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/templates/loader/terraform_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ func (l *TerraformLoader) injectExts(vs *openapi3.Schema) {
Export()
}

if _, ok := groupOrder[extUI.Group]; !ok {
od, ok := groupOrder[extUI.Group]
if !ok || od > extUI.Order {
groupOrder[extUI.Group] = extUI.Order
}
}
Expand Down

0 comments on commit 984a6c5

Please sign in to comment.