From 46859a6e5d707e3bb4f95c24124428e23a94468e Mon Sep 17 00:00:00 2001 From: tree Date: Sun, 29 Jan 2023 13:22:43 +0100 Subject: [PATCH] Fix (2) --- src/lib/components/CollectionList.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/components/CollectionList.svelte b/src/lib/components/CollectionList.svelte index 171efd1c..fa78f563 100644 --- a/src/lib/components/CollectionList.svelte +++ b/src/lib/components/CollectionList.svelte @@ -21,10 +21,12 @@ let found = null for (const e of bundle.events) { if (!e.speakers) continue; - if (currentItem && e.id === currentItem.id) continue; - found = e.speakers.find(s => s.id === it.id) + found = e.speakers.find(s => { + return s.id === it.id && s.name + }) + if (found) break; } - Object.assign(it, found) + Object.assign(it, found || {}) } return it }