dragonfly-science / bailiwick-ui

Bailiwick frontend
1 stars 1 forks source link

Empty data showing up in json files #25

Closed simonwinter closed 5 years ago

simonwinter commented 5 years ago

We're getting things like this showing up in the json files:

(tourism-spend.json)

{"headline":"$NA","local":"...","national":"  NA","indexDisp":"    NA"}

Rather than a full record like so:

{"areaid":"canterbury","year":2009,"feature":"africa-and-middle-east","headline":"$35","local":"...","national":"0.13","colour":"#B7D4DB","rawvalue":"35.434908112665","index":"100","indexDisp":"   100"}

It means that reflex will then complain like so:

getIndicatorDataResponse failure: Error in $.numbers: key "areaid" not present