Added more conditional checks to exclusion

This commit is contained in:
Wyatt Johnson
2017-03-01 10:49:47 -07:00
parent bbf70aedab
commit 45b14d026d
+1 -1
View File
@@ -54,7 +54,7 @@ const getAssetMetrics = ({loaders: {Metrics, Assets, Comments}}, {from, to, sort
.filter((asset) => {
let contextActionSummary = asset.action_summaries.find((({action_type}) => action_type === sort));
if (contextActionSummary === null) {
if (contextActionSummary === null || contextActionSummary.actionCount === 0) {
return false;
}