From 0dcdfcbd5266d8b3d1b2c69667f66c5f24bcdd74 Mon Sep 17 00:00:00 2001 From: Dicken Date: Sun, 31 May 2026 14:47:54 +0200 Subject: [PATCH] Fix: ArchivModal kalkulator3d API response format --- frontend/src/tools/bestellungen.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index 60a2036..8b3fe7e 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -509,7 +509,8 @@ function ArchivModal({ calcId, onClose }) { const mobile = window.innerWidth < 768; useEffect(() => { - api('/tools/kalkulator3d').then(items => { + api('/tools/kalkulator3d').then(d => { + const items = d.own || d || []; setItem(items.find(i => i.id === calcId) || null); }).catch(() => {}); }, [calcId]);