mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
stops/stations: default .id of null
This commit is contained in:
parent
a68614bfaf
commit
cb2d2981a3
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ const parseLocation = (profile, opt, {lines}, l) => {
|
||||||
|
|
||||||
if (l.type === ADDRESS) res.address = l.name
|
if (l.type === ADDRESS) res.address = l.name
|
||||||
else res.name = l.name
|
else res.name = l.name
|
||||||
if (l.type === POI) res.id = l.extId
|
if (l.type === POI) res.id = l.extId || null
|
||||||
|
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue