From 289e40b144c32aa1fed6651fbb45990803f98377 Mon Sep 17 00:00:00 2001 From: Alexander Watzinger Date: Tue, 3 Oct 2023 14:42:17 +0200 Subject: [PATCH] Minor API fix --- openatlas/api/resources/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openatlas/api/resources/util.py b/openatlas/api/resources/util.py index 7c1590ad3..f11aa114d 100644 --- a/openatlas/api/resources/util.py +++ b/openatlas/api/resources/util.py @@ -166,7 +166,7 @@ def get_reference_systems( links_inverse: list[Link]) -> list[dict[str, Any]]: ref = [] for link_ in links_inverse: - if not isinstance(link_.domain, ReferenceSystem): + if not isinstance(link_.domain, ReferenceSystem) or not link_.type: continue system = g.reference_systems[link_.domain.id] ref.append({