strat-gameplay-webapp/frontend-sba/components
Cal Corum 1f2daf233e CLAUDE: Fix TypeScript error in DefensiveSetup - use on_first/on_second/on_third
Fixed property access bug introduced in previous commit:

**Issue**:
- DefensiveSetup.vue was accessing `gameState.runners.third` and `runners.first/second/third`
- GameState type doesn't have a `runners` property
- Caused TypeScript error: "Property 'runners' does not exist on type 'GameState'"

**Fix**:
- Changed to use correct properties: `on_first`, `on_second`, `on_third`
- Updated infieldDepthOptions: `props.gameState?.on_third` (line 163)
- Updated outfieldDepthOptions: destructure `on_first, on_second, on_third` (line 178)
- Updated hasRunners check: `on_first || on_second || on_third` (line 184)

**Why**:
GameState uses individual nullable properties for runners, not a nested object.
This matches the backend Pydantic model structure.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-21 15:44:20 -06:00
..
Decisions CLAUDE: Fix TypeScript error in DefensiveSetup - use on_first/on_second/on_third 2025-11-21 15:44:20 -06:00
Game CLAUDE: Fix pitcher/catcher recovery and lineup data format 2025-11-19 16:30:05 -06:00
Gameplay CLAUDE: Standardize decision phase naming and fix frontend type mismatches 2025-11-21 15:40:52 -06:00
Substitutions CLAUDE: Fix pitcher/catcher recovery and lineup data format 2025-11-19 16:30:05 -06:00
UI CLAUDE: Phase F3 Complete - Decision Input Workflow with Comprehensive Testing 2025-11-13 13:47:36 -06:00
CLAUDE.md CLAUDE: Fix critical game engine issues and refactor CLAUDE.md docs 2025-11-19 16:05:26 -06:00