fixed local node null geo angular error

This commit is contained in:
Marian Oancea
2015-02-05 17:21:22 +02:00
parent 427b04c607
commit c7d1144f1b
2 changed files with 5 additions and 4 deletions

View File

@@ -73,7 +73,10 @@ angular.module('netStatsApp.filters', [])
})
.filter('geoTooltip', function() {
return function(geo) {
return geo.city + ", " + geo.country;
if(geo !== null)
return geo.city + ", " + geo.country;
return '';
};
});