mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-04-13 18:01:17 +08:00
Minor fix
This commit is contained in:
@@ -213,7 +213,7 @@ export default {
|
||||
const sites: any[] = _.sortBy(Object.entries(this.torrentGroupBySite).map(([key, value]) => {
|
||||
const size = formatSize(_.sumBy(value, 'size'));
|
||||
const site = (SiteMap as any)[key];
|
||||
const title = (site ? site.name : 'Others') + ` (${value.length})`;
|
||||
const title = (site ? site.name : (key ? key : 'Others')) + ` (${value.length})`;
|
||||
const icon = _.defaultTo(site ? site.icon : null, 'mdi-server');
|
||||
const append = `[${size}]`;
|
||||
return { icon, title, key, append };
|
||||
|
||||
Reference in New Issue
Block a user