We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2e54d commit 342acc8Copy full SHA for 342acc8
backend/src/openarchiefbeheer/zaken/utils.py
@@ -127,14 +127,15 @@ def format_selectielijstklasse_choice(resultaat: Resultaat) -> DropDownChoice:
127
}
128
129
130
-def format_resultaten_choices(resultaten: list[dict]) -> DropDownChoice:
+def format_resultaten_choices(resultaten: list[dict | None]) -> DropDownChoice:
131
result = [
132
{
133
"value": resultaat["_expand"]["resultaattype"]["url"],
134
"label": resultaat["_expand"]["resultaattype"]["omschrijving"],
135
"extra_data": {"toelichting": resultaat.get("toelichting")},
136
137
for resultaat in resultaten
138
+ if resultaat
139
]
140
return result
141
0 commit comments