iptv/scripts/store/getters/group_title.js
2022-02-12 02:13:28 +03:00

14 lines
258 B
JavaScript

module.exports = function () {
if (this.group_title) return this.group_title
if (this.categories.length) {
return this.categories
.filter(c => c)
.map(category => category.name)
.sort()
.join(';')
}
return 'Undefined'
}