Skip to content

Commit

Permalink
Get rid of Svelte state_proxy_equality_mismatch warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Dec 31, 2024
1 parent 7901059 commit 4684093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/contents/contents-page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4684093

Please sign in to comment.