mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
journeys: default earlierRef & laterRef to null 🐛
`JSON.stringify` exludes entries with `undefined`.
This commit is contained in:
parent
916ac3067d
commit
78487d9163
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -175,7 +175,7 @@ const createClient = (profile, userAgent, opt = {}) => {
|
||||||
// until we have enough.
|
// until we have enough.
|
||||||
// todo: revert this change, see https://github.com/public-transport/hafas-client/issues/76#issuecomment-424448449
|
// todo: revert this change, see https://github.com/public-transport/hafas-client/issues/76#issuecomment-424448449
|
||||||
const journeys = []
|
const journeys = []
|
||||||
let earlierRef, laterRef
|
let earlierRef = null, laterRef = null
|
||||||
const more = (when, journeysRef) => {
|
const more = (when, journeysRef) => {
|
||||||
const query = {
|
const query = {
|
||||||
outDate: profile.formatDate(profile, when),
|
outDate: profile.formatDate(profile, when),
|
||||||
|
|
Loading…
Add table
Reference in a new issue