From 68ae462c922ac8a3b00e46e163a30bf0a6220e1e Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Sun, 5 May 2024 19:50:18 +0200 Subject: [PATCH] Fix filter_graph_by_implementation_group base case --- backend/core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/views.py b/backend/core/views.py index 338350733..294f809c8 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -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():