13 lines
235 B
JavaScript
13 lines
235 B
JavaScript
module.exports = function () {
|
|
if (this.group_title !== undefined) return this.group_title
|
|
|
|
if (Array.isArray(this.categories)) {
|
|
return this.categories
|
|
.map(i => i.name)
|
|
.sort()
|
|
.join(';')
|
|
}
|
|
|
|
return ''
|
|
}
|