Commit 750f39a8 authored by Tobias Steiner's avatar Tobias Steiner
Browse files

If typology is undefined return null

parent 374e30ec
......@@ -164,7 +164,7 @@ class WikiNormalizer extends Transform {
return typeof instanceOf.mainsnak.datavalue.value.id === 'undefined' ?
null : instanceOf.mainsnak.datavalue.value.id;
} catch (err) {}
});
}).filter((instance) => typeof instance !== 'undefined');
}
/**
......
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