This commit is contained in:
Aleksandr Statciuk
2022-02-07 01:22:20 +03:00
parent 109deb476d
commit bad3eddf9d
25 changed files with 453 additions and 447 deletions

View File

@@ -1,12 +1,12 @@
module.exports = function () {
if (this.group_title !== undefined) return this.group_title
if (Array.isArray(this.categories)) {
if (Array.isArray(this.categories) && this.categories.length) {
return this.categories
.map(i => i.name)
.sort()
.join(';')
}
return ''
return 'Undefined'
}