From f07e27abe875a10fa990c758bba0d703f8e44bd5 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Fri, 28 Nov 2025 21:14:23 +0000 Subject: [PATCH] fix: teams/new/+page.svelte position type assertions (172 -> 166 errors) Co-Authored-By: Justin Edmund --- src/routes/teams/new/+page.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/teams/new/+page.svelte b/src/routes/teams/new/+page.svelte index 2f299d7a..b0a78a8e 100644 --- a/src/routes/teams/new/+page.svelte +++ b/src/routes/teams/new/+page.svelte @@ -281,7 +281,7 @@ const emptySlots = Array.from({ length: 10 }, (_, i) => i - 1) .filter(i => !weapons.find(w => w.position === i)) if (emptySlots.length === 0) return // Grid full - position = emptySlots[0] + position = emptySlots[0]! } // Add weapon via API @@ -313,7 +313,7 @@ const emptySlots = [-1, 0, 1, 2, 3, 6] // main, 4 grid slots, friend .filter(i => !summons.find(s => s.position === i)) if (emptySlots.length === 0) return // Grid full - position = emptySlots[0] + position = emptySlots[0]! } // Add summon via API @@ -347,7 +347,7 @@ const emptySlots = Array.from({ length: 5 }, (_, i) => i) .filter(i => !characters.find(c => c.position === i)) if (emptySlots.length === 0) return // Grid full - position = emptySlots[0] + position = emptySlots[0]! } // Add character via API @@ -394,7 +394,7 @@ // Find next empty slot const availableSlots = emptySlots.filter(s => !weapons.find(w => w.position === s)) if (availableSlots.length === 0) return - position = availableSlots[0] + position = availableSlots[0]! } const newWeapon = { @@ -426,7 +426,7 @@ // Find next empty slot const availableSlots = emptySlots.filter(s => !summons.find(sum => sum.position === s)) if (availableSlots.length === 0) return - position = availableSlots[0] + position = availableSlots[0]! } summons = [...summons, { @@ -456,7 +456,7 @@ // Find next empty slot const availableSlots = emptySlots.filter(s => !characters.find(c => c.position === s)) if (availableSlots.length === 0) return - position = availableSlots[0] + position = availableSlots[0]! } characters = [...characters, {