[openstreetmap/openstreetmap-website] Prevent exceptions while reversing directions (#2521)
Holger Jeromin
notifications at github.com
Sun Jan 26 10:50:59 UTC 2020
I quite changed
`route: to.lat + "," + to.lng + ";" + from.lat + "," + from.lng`
to
`route: to ? (to.lat + "," + to.lng) : "" + ";" + from ? (from.lat + "," + from.lng) : ""`
But this looks ugly
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2521#issuecomment-578490083
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200126/812d8c9d/attachment.htm>
More information about the rails-dev
mailing list