Keep previous organization list if week is empty.

parent fd22f17c
......@@ -357,7 +357,12 @@ var failmap = {
vueMap.loading = true;
$.getJSON('/data/map/' + weeknumber, function (json) {
// make map features (organization data) available to other vues
vueMap.features = json.features;
// do not update this attribute if an empty list is returned as currently
// the map does not remove organizations for these kind of responses.
if (json.features.length > 0){
vueMap.features = json.features;
// if there is one already, overwrite the attributes...
if (failmap.geojson) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment