From 30b6259e872dfd65851d6bffc913df96f54f3a21 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 23 Feb 2017 14:43:25 -0700 Subject: [PATCH] Patched bug with asset metrics --- graph/loaders/metrics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/loaders/metrics.js b/graph/loaders/metrics.js index 1b0719d0f..a22cbb58f 100644 --- a/graph/loaders/metrics.js +++ b/graph/loaders/metrics.js @@ -31,7 +31,7 @@ const getAssetMetrics = ({loaders: {Metrics, Assets}}, {from, to, sort, limit}) }, {}); // Collect just the comment id's. - let commentIDs = _.uniq(actionSummaries.map((as) => as.item_id)); + let commentIDs = Object.keys(commentMetrics); // Find those comments. return Metrics.getSpecificComments.loadMany(commentIDs);