Fixed problems with empty tables, bumped to v4

This commit is contained in:
Magnus Åhall 2024-05-01 21:44:53 +02:00
parent 715ac03c3b
commit 9d2bfc599d
4 changed files with 13 additions and 1 deletions

View file

@ -45,6 +45,10 @@ func AreaRetrieve() (areas []Area, err error) { // {{{
return
}
if jsonData == nil {
return
}
err = json.Unmarshal(jsonData, &areas)
if err != nil {
err = re.Wrap(err)