Skip to content

Commit

Permalink
Merge pull request #28 from Aradhya-Tripathi/schema-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns authored May 26, 2023
2 parents 42564c5 + f42f995 commit 2059c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trogon/widgets/parameter_controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def apply_filter(self, filter_query: str) -> bool:
Returns:
True if the filter matched (and the widget is visible).
"""
help_text = getattr(self.schema, "help", "")
help_text = getattr(self.schema, "help", "") or ""
if not filter_query:
should_be_visible = True
self.display = should_be_visible
Expand All @@ -85,7 +85,7 @@ def apply_filter(self, filter_query: str) -> bool:
filter_query in name.casefold() for name in self.schema.name
)
help_contains_query = (
filter_query in getattr(self.schema, "help", "").casefold()
filter_query in help_text.casefold()
)
should_be_visible = name_contains_query or help_contains_query

Expand Down

0 comments on commit 2059c51

Please sign in to comment.