From f25f1426d8b293d31e9f0368ac715ae0bdbe4d28 Mon Sep 17 00:00:00 2001 From: 14ROVI <29734170+14ROVI@users.noreply.github.com> Date: Wed, 1 Feb 2023 12:57:17 +0000 Subject: [PATCH] cohost undefined fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 479a4f9..c6025ba 100644 --- a/index.js +++ b/index.js @@ -147,7 +147,7 @@ function displayEvent(event) { sponsorsContainer.innerHTML = ""; if (kioskOptions.show_sponsors) { - for (let cohost of event.attributes.cohost) { + for (let cohost of event.attributes.cohost || []) { let company = findCompany(cohost.company); let logoURL = "https://cssbristol.co.uk/assets/images/contrib/companies/" + company.attributes.logo;