2021-12-12 07:11:50 +03:00
|
|
|
module.exports = function () {
|
2022-02-11 19:56:11 +03:00
|
|
|
if (this.group_title) return this.group_title
|
|
|
|
|
|
|
|
if (this.categories.length) {
|
|
|
|
return this.categories
|
2022-02-12 02:13:28 +03:00
|
|
|
.filter(c => c)
|
2022-02-11 19:56:11 +03:00
|
|
|
.map(category => category.name)
|
|
|
|
.sort()
|
|
|
|
.join(';')
|
|
|
|
}
|
|
|
|
|
|
|
|
return 'Undefined'
|
2021-12-12 07:11:50 +03:00
|
|
|
}
|