From 137bd831a9093e9e05b8447688c182db505d4117 Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Thu, 3 Feb 2022 15:20:30 +0100 Subject: [PATCH] Fix main cowebsite switcher --- front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte b/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte index 3bd130f5..809d1985 100644 --- a/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte +++ b/front/src/Components/EmbedScreens/CoWebsiteThumbnailSlot.svelte @@ -36,7 +36,7 @@ const coWebsites = $coWebsitesNotAsleep; const newMain = $highlightedEmbedScreen ?? coWebsites.length > 1 ? coWebsites[1] : undefined; if (newMain) { - coWebsiteManager.goToMain(coWebsite); + coWebsiteManager.goToMain(newMain); } } else { highlightedEmbedScreen.toggleHighlight({