iptv/scripts/store/getters/group_title.js

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'
}