diff --git a/source/plugins/topics/index.mjs b/source/plugins/topics/index.mjs index 3f079847..b18e8ec0 100644 --- a/source/plugins/topics/index.mjs +++ b/source/plugins/topics/index.mjs @@ -57,7 +57,8 @@ if ((mode === "starred")&&(limit > 0)) { console.debug(`metrics/compute/${login}/plugins > topics > keeping only ${limit} topics`) const removed = topics.splice(limit) - topics.push({name:`And ${removed.length} more...`, description:removed.map(({name}) => name).join(", "), icon:null}) + if (removed.length) + topics.push({name:`And ${removed.length} more...`, description:removed.map(({name}) => name).join(", "), icon:null}) } //Convert icons to base64 console.debug(`metrics/compute/${login}/plugins > topics > loading artworks`)