added clarifying comment for formatDeviceData

This commit is contained in:
David Baldwynn 2017-11-20 21:24:20 -08:00
parent 88299a2b27
commit 94bcae9d5b

View File

@ -74,6 +74,8 @@ angular.module('forms').directive('editSubmissionsFormDirective', ['$rootScope',
if(deviceStatData && deviceStatData.length){
for(var i=0; i<deviceStatData.length; i++){
var currDevice = deviceStatData[i];
//_id here is deviceType of field due to aggregation in getVisitorData
if(stats[currDevice._id]){
stats[currDevice._id] = currDevice;
}