From 25e868118dab3b5ff53a6fb256cdcd09137b7645 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Thu, 13 Nov 2025 14:40:02 -0800 Subject: [PATCH] Slight optimization --- src/app/core/state.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/core/state.ts b/src/app/core/state.ts index 0bceb584..cc649556 100644 --- a/src/app/core/state.ts +++ b/src/app/core/state.ts @@ -250,15 +250,15 @@ export const getUrlsForEvent = derived([trackerStore, thunks], ([$tracker, $thun }) return (id: string) => { - const urls = Array.from($tracker.getRelays(id)) + const urls = $tracker.getRelays(id) for (const thunk of getThunksByEventId().get(id) || []) { for (const url of thunk.options.relays) { - urls.push(url) + urls.add(url) } } - return uniq(urls) + return Array.from(urls) } })