Skip to content

Commit

Permalink
Fix filter_graph_by_implementation_group base case
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 5, 2024
1 parent 026de92 commit 68ae462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ def post(self, request, *args, **kwargs):
def filter_graph_by_implementation_groups(
graph: dict[str, dict], implementation_groups: set[str] | None
) -> dict[str, dict]:
if len(implementation_groups) == 0:
if implementation_groups is None or len(implementation_groups) == 0:
return graph
filtered_graph = {}
for key, value in graph.items():
Expand Down

0 comments on commit 68ae462

Please sign in to comment.