From 46840938046d3bfbbe2b122dce3a0c530a1b6b25 Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 30 Dec 2024 23:36:37 -0500 Subject: [PATCH] Get rid of Svelte `state_proxy_equality_mismatch` warning --- src/lib/components/contents/contents-page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/contents/contents-page.svelte b/src/lib/components/contents/contents-page.svelte index bebe1e0a..2426c291 100644 --- a/src/lib/components/contents/contents-page.svelte +++ b/src/lib/components/contents/contents-page.svelte @@ -43,7 +43,7 @@ */ const collection = _collectionName ? getCollection(_collectionName) : undefined; - if (collection && !collection.hide && $selectedCollection !== collection) { + if (collection && !collection.hide && $selectedCollection?.name !== collection?.name) { $selectedCollection = collection; }