From c6229a2c2219a51d2337a074d24e5488bc1f1d30 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 8 May 2026 06:46:51 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Tech-File=20html=5Fcontent=20=E2=86=92?= =?UTF-8?q?=20content=20Mapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit API liefert html_content, Frontend erwartet content. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../app/sdk/iace/[projectId]/tech-file/page.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx b/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx index b72843a..62f02a8 100644 --- a/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx +++ b/admin-compliance/app/sdk/iace/[projectId]/tech-file/page.tsx @@ -140,7 +140,12 @@ export default function TechFilePage() { const res = await fetch(`/api/sdk/v1/iace/projects/${projectId}/tech-file`) if (res.ok) { const json = await res.json() - setSections(json.sections || json || []) + const raw = json.sections || json || [] + // Map html_content → content for frontend compatibility + setSections(raw.map((s: Record) => ({ + ...s, + content: s.content || s.html_content || null, + }))) } } catch (err) { console.error('Failed to fetch tech file sections:', err)