From c11e9fcab0959ed6595f493d129972e5f390f4b8 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:30:01 +0300 Subject: [PATCH] Update channel.ts --- scripts/models/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/models/channel.ts b/scripts/models/channel.ts index ae18fe0d..04a9f125 100644 --- a/scripts/models/channel.ts +++ b/scripts/models/channel.ts @@ -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] } }