Skip to content

Commit

Permalink
hotfix for implementation groups
Browse files Browse the repository at this point in the history
Avoid Error 500 on display of CCB
  • Loading branch information
eric-intuitem committed May 8, 2024
1 parent 14d56e5 commit 041bc96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,10 @@ def get_global_score(self):

def get_selected_implementation_groups(self):
framework = self.framework
if not framework.implementation_groups_definition:
if (
not framework.implementation_groups_definition
or not self.selected_implementation_groups
):
return []
return [
group.get("name")
Expand Down

0 comments on commit 041bc96

Please sign in to comment.