Update store.js

This commit is contained in:
Arhey 2022-10-19 01:06:04 +03:00
parent 5a9cbb78fc
commit 0ae8b64ae2

View file

@ -115,7 +115,7 @@ function generateKey(c) {
_.pick(c, [ _.pick(c, [
'id', 'id',
'name', 'name',
'native_name', 'alt_names',
'network', 'network',
'country', 'country',
'subdivision', 'subdivision',
@ -128,7 +128,7 @@ function generateKey(c) {
'replaced_by' 'replaced_by'
]) ])
) )
const translit = c.native_name ? transliterate(c.native_name) : null const translit = c.alt_names ? transliterate(c.alt_names) : null
return [...data, translit] return [...data, translit]
.map(v => v || '') .map(v => v || '')