Update channel.ts

This commit is contained in:
freearhey 2023-10-15 21:30:01 +03:00
parent 60a9d77647
commit c11e9fcab0

View file

@ -85,7 +85,7 @@ export class Channel {
const data: { [key: string]: string | string[] | boolean } = channel.data() const data: { [key: string]: string | string[] | boolean } = channel.data()
for (const prop in data) { for (const prop in data) {
if (data[prop] === undefined) continue 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] this[prop] = data[prop]
} }
} }