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:
@@ -21,7 +21,7 @@ export function Sidebar({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetch(`${API_URL}/api/projects`)
|
fetch(`${API_URL}/api/projects`)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(setProjects)
|
.then(data => setProjects(data.projects || data))
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user