Files
vibe-kanban/frontend
Louis Knight-Webb 25c8ab29a9 Fix workspace actions in summary (#1986)
## Summary

Fixed the "workspace not found" error when performing actions on non-selected workspaces.

**Root cause**: The `getWorkspaceFromCache()` function only checked the React Query cache, but only the currently selected workspace had its full data cached.

**Solution**: Modified the helper function to fetch from the API when data isn't in cache.

**File modified**: `frontend/src/components/ui-new/actions/index.ts`

**Changes**:
1. Renamed `getWorkspaceFromCache` → `getWorkspace` and made it async
2. Added fallback to `attemptsApi.get(workspaceId)` when cache miss occurs
3. Updated all 6 call sites to use `await getWorkspace()`:
   - `RenameWorkspace` (line 215)
   - `PinWorkspace` (line 229)
   - `ArchiveWorkspace` (line 246)
   - `DeleteWorkspace` (line 281)
   - `OpenInOldUI` (line 489)
   - `GitCreatePR` (line 630)
2026-01-12 23:02:56 +00:00
..
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2025-06-25 09:36:07 +01:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-08 22:14:38 +00:00
2026-01-12 21:53:09 +00:00
2026-01-08 22:14:38 +00:00
2025-06-14 15:14:08 -04:00
2026-01-08 22:14:38 +00:00