Fix: Elektro-Input Remount, Bestellungen Ladeschleife durch kalkulator3d API-Format
This commit is contained in:
@@ -47,7 +47,7 @@ function BestellungDetail({ id, toast, onBack }) {
|
||||
const [form, setForm] = useState({ name:'', bemerkung:'', custom_price:'', status:'warteliste' });
|
||||
|
||||
useEffect(() => {
|
||||
api('/tools/kalkulator3d').then(setArchiv).catch(()=>{});
|
||||
api('/tools/kalkulator3d').then(d => setArchiv(d.own || d || [])).catch(()=>{});
|
||||
if (id) {
|
||||
api(`/tools/bestellungen/${id}`)
|
||||
.then(o => { setOrder(o); setForm({ name:o.name, bemerkung:o.bemerkung, custom_price:o.custom_price??'', status:o.status }); })
|
||||
|
||||
Reference in New Issue
Block a user