iptv/scripts/store/getters/group_title.js
Aleksandr Statciuk bad3eddf9d wip
2022-02-07 01:22:20 +03:00

13 lines
270 B
JavaScript

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