diff --git a/frontend/src/services/project.ts b/frontend/src/services/project.ts index 2bf4da5f..e5f51829 100644 --- a/frontend/src/services/project.ts +++ b/frontend/src/services/project.ts @@ -65,8 +65,8 @@ export interface Project { // Transform backend response to frontend format const transformProject = (project: ProjectResponse): Project => { let sections: ProjectSection[] = []; - - if (project.Sections) { + + if (project.Sections && Array.isArray(project.Sections)) { sections = project.Sections.map(s => ({ id: s.id, title: s.title || '',