Closed emilielr closed 2 months ago
Har du glemt å pushe noe kode her? Klarer ikke å finne det du snakker om over 😓
NÃ¥r man har en walkingdist som gir "-" og legger til en ny adresse som gir samme state, blir vis gÃ¥avstand switchen skrudd av. Det samme skjer om man gÃ¥r fra en adresse som gir en walkingdist til en som skal gi "-". Er dette meningen? ðŸ’
F.eks. fra en slik adresse (der gåavstand er skrudd på)
til å f.eks. si at det skal stå fra drammen
The field
walkDistance
is deprecated, and updated tostreetDistance
. Hence, the graphQL schema and types is updated. Taxi was also added as a new transport mode.Problem: the walking distance was not set when the location of the board was far away. E. g when fetching the distance from Trondheim to Oslo, it returned nothing. Since the distance was undefined, the
walkingDistance
-object was deleted.Solution: instead of deleting the whole
walkingDistance
-object in the database, thedistance
-field is set toNaN
indicating the distance is not found. Thevisible
-field is still eithertrue
orfalse
. If distance is not present, "-" will show in tavla.