Make sure we don't show more than 6 rows in channel ranking widget

This commit is contained in:
nymkappa 2023-02-24 20:25:28 +09:00
parent 98e709b739
commit 92862939da
No known key found for this signature in database
GPG key ID: E155910B16E8BD04

View file

@ -56,7 +56,7 @@ export class TopNodesPerChannels implements OnInit {
iso: ranking.topByChannels[i].iso_code,
};
}
return ranking.topByChannels;
return ranking.topByChannels.slice(0, 6);
})
);
}