Commit 6750037c authored by tobinski's avatar tobinski
Browse files

Still problem with the name

parent 9c21d865
...@@ -196,9 +196,9 @@ class WikidataNormalizerTransformer extends Transform { ...@@ -196,9 +196,9 @@ class WikidataNormalizerTransformer extends Transform {
return name2; return name2;
} }
const name3 = this.getAlternativNames(obj)[0]; const name3 = this.getAlternativNames(obj);
if (name3 !== null) { if (typeof name3[0] !== 'undefined' && name3[0] !== null) {
return name3; return name3[0];
} }
// this often fails. Then we use null from the catch // this often fails. Then we use null from the catch
......
Supports Markdown
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