Commit ab38a2f1 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Fix identifier extraction

parent bad2be66
Pipeline #16471 passed with stages
in 6 minutes and 1 second
......@@ -103,7 +103,12 @@ object Extract {
fun extractIdValue(entities: List<JsonObject>, type: String): String? {
return entities.first {
it["type"] as String == type
it["type"].let { identifier ->
if (identifier == null)
false
else
identifier == type
}
}.getOrDefault("identifier", null) as String?
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment