From 8a07691c0b5597b166f1a7ffb6bde3bb6abd6c52 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 20 Dec 2025 17:11:39 -0800 Subject: [PATCH] fix weapons collection crash at page 6 use index key instead of weapon.id to avoid svelte 5 keyed each bug at 250+ items --- src/routes/(app)/[username]/collection/weapons/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/(app)/[username]/collection/weapons/+page.svelte b/src/routes/(app)/[username]/collection/weapons/+page.svelte index 2b2913ed..180a8e46 100644 --- a/src/routes/(app)/[username]/collection/weapons/+page.svelte +++ b/src/routes/(app)/[username]/collection/weapons/+page.svelte @@ -152,7 +152,7 @@ {:else if currentViewMode === 'grid'}
- {#each allWeapons as weapon (weapon.id)} + {#each allWeapons as weapon, i (i)} openWeaponDetails(weapon)}> @@ -160,7 +160,7 @@
{:else}
- {#each allWeapons as weapon (weapon.id)} + {#each allWeapons as weapon, i (i)} openWeaponDetails(weapon)}>