Fix projects plugin for repository template

This commit is contained in:
linguist
2020-12-28 20:11:08 +01:00
parent 159b0757a8
commit b1db39854c
2 changed files with 4 additions and 3 deletions

View File

@@ -55,6 +55,7 @@
await common(...arguments)
await Promise.all(pending)
//Reformat projects name
data.plugins.projects.list.map(project => project.name = project.name.replace(`(${login}/${repo})`, "").trim())
//Reformat projects names
if (data.plugins.projects)
data.plugins.projects.list?.map(project => project.name = project.name.replace(`(${login}/${repo})`, "").trim())
}