Skip to content

Commit

Permalink
Fix a recursion issue with hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
kw committed Mar 27, 2024
1 parent 1af7ea7 commit 26b89f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/camp/engine/rules/base_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def children(self) -> list[BaseFeatureController]:
if fc.is_option_template:
children.extend(fc.option_controllers().values())

children.sort(key=lambda f: f.display_name())
children.sort(key=lambda f: f.definition.name)
children.sort(key=lambda f: self.character.display_priority(f.feature_type))
return children

Expand Down
1 change: 1 addition & 0 deletions tests/rulesets/tempest_test/roles/__defaults__.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
type: role
hidden: true

0 comments on commit 26b89f0

Please sign in to comment.