From 376dc6d365821e4c023194b129dd5dc2124a4584 Mon Sep 17 00:00:00 2001 From: Nicolai Skovvart Date: Mon, 31 Jan 2022 16:14:23 +0100 Subject: [PATCH] Attempt to fix parentNode null In some scenarios a null error can occur (see below) - think it may be this issue and resolution: https://github.com/sveltejs/svelte/issues/6037#issuecomment-810304989 index.mjs:199 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'removeChild') at v (index.mjs:199:21) at Object.d (ChannelElement.svelte:47:58) at Object.d (ChannelElement.svelte:46:9) at index.mjs:812:27 at n (index.mjs:18:12) at Array.forEach () at i (index.mjs:24:9) at nt (index.mjs:793:9) at Object.p (ChannelElement.svelte:40:47) at X (index.mjs:764:36) --- src/ChannelElement.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChannelElement.svelte b/src/ChannelElement.svelte index 41312e0..bc7a960 100644 --- a/src/ChannelElement.svelte +++ b/src/ChannelElement.svelte @@ -44,7 +44,9 @@
{#if shows?.length} {#each shows as show (show.id + show.start)} - +
+ +
{/each} {:else}

(Ingen programmer at vise)