Skip to content

Commit

Permalink
12492: don't attempt to render non-existent child
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka committed Oct 11, 2023
1 parent ae0fe55 commit 34463fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/decorators/odk/qing_group_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ def group_hint_tag(xpath)
end

def main_body_tags(xpath)
return +"" unless visible_children.present?

# If this is a multilevel fragment, we are supposed to render just one of the subqings. %>
if multilevel_fragment?
visible_children[0].body_tags(group: self, xpath_prefix: xpath)
Expand Down

0 comments on commit 34463fc

Please sign in to comment.