diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsx index 213ac09..1b725a9 100644 --- a/frontend/src/components/Sidebar.jsx +++ b/frontend/src/components/Sidebar.jsx @@ -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); }, []);