Fix templatig issue, when no values returned, closes #354

This commit is contained in:
Alexander Zobnin
2017-02-11 16:26:23 +03:00
parent eca809679d
commit 94c24e9be4
8 changed files with 17 additions and 17 deletions

View File

@@ -484,7 +484,7 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
}
return result.then(function (metrics) {
return metrics.map(formatMetric);
return _.map(metrics, formatMetric);
});
}
}, {