Update util.js
Resolved 'Cannot read property 'toLowerCase' of undefined' error
This commit is contained in:
parent
f6e38d4c19
commit
2db717f7e0
@ -44,6 +44,8 @@ class Channel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getGroup(groupTitle) {
|
_getGroup(groupTitle) {
|
||||||
|
if(!groupTitle) return ''
|
||||||
|
|
||||||
const groupIndex = supportedGroups.map(g => g.toLowerCase()).indexOf(groupTitle.toLowerCase())
|
const groupIndex = supportedGroups.map(g => g.toLowerCase()).indexOf(groupTitle.toLowerCase())
|
||||||
|
|
||||||
if(groupIndex === -1) {
|
if(groupIndex === -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user