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 {
return name2;
}
const name3 = this.getAlternativNames(obj)[0];
if (name3 !== null) {
return name3;
const name3 = this.getAlternativNames(obj);
if (typeof name3[0] !== 'undefined' && name3[0] !== null) {
return name3[0];
}
// this often fails. Then we use null from the catch
......
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