jriddell / wheres-the-water

Paddle Scotland Where's the Water website
GNU General Public License v3.0
3 stars 2 forks source link

Breakage on empty readings #35

Open jriddell opened 5 years ago

jriddell commented 5 years ago

On Update rivers output says:

No SEPA gauge data for 14985

So JSON in rivers-readings.json has:

14985  
currentReading null
trend null
currentReadingTime null

And javascript stops with TypeError: currentReadingTime is null[Learn More] map:2536:17

And dots don't get shown