Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
histhub
wikidata-lib
Commits
750f39a8
Commit
750f39a8
authored
Aug 16, 2018
by
Tobias Steiner
Browse files
If typology is undefined return null
parent
374e30ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wiki-normalizer.ts
View file @
750f39a8
...
...
@@ -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
'
)
;
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment