Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rdmo/projects/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ def compute_element_node(self, element, parent_set=None):

# find the first element
if element_type in self.verbose:
element_node['first'] = element_node['elements'][0]['id']
if element_node['elements']:
element_node['first'] = element_node['elements'][0]['id']

# aggregate count and total from the child elements
element_node['count'] = sum(child_node['count'] for child_node in element_node['elements'])
Expand Down
Loading