fix: Handle new projects API response format in Sidebar

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-15 22:21:07 +01:00
parent 38ab89932a
commit 60095d6e25

View File

@@ -21,7 +21,7 @@ export function Sidebar({
useEffect(() => {
fetch(`${API_URL}/api/projects`)
.then(res => res.json())
.then(setProjects)
.then(data => setProjects(data.projects || data))
.catch(console.error);
}, []);