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
6750037c
Commit
6750037c
authored
Oct 10, 2019
by
tobinski
Browse files
Still problem with the name
parent
9c21d865
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wikidata-normalizer-transformer.ts
View file @
6750037c
...
@@ -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
...
...
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