mirror of
https://github.com/iptv-org/database.git
synced 2024-11-21 18:42:31 -05:00
Update channel.ts
This commit is contained in:
parent
60a9d77647
commit
c11e9fcab0
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ export class Channel {
|
|||
const data: { [key: string]: string | string[] | boolean } = channel.data()
|
||||
for (const prop in data) {
|
||||
if (data[prop] === undefined) continue
|
||||
if (Array.isArray(data[prop]) && !data[prop].length) continue
|
||||
if (Array.isArray(data[prop]) && !(data[prop] as string[]).length) continue
|
||||
this[prop] = data[prop]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue