From 95be17a2db5acac50b835f90de7b436a33da884f Mon Sep 17 00:00:00 2001 From: Dicken Date: Tue, 26 May 2026 10:22:46 +0200 Subject: [PATCH] Dateien nach "frontend/src/tools" hochladen --- frontend/src/tools/bestellungen.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/tools/bestellungen.jsx b/frontend/src/tools/bestellungen.jsx index dd4406c..c811e2c 100644 --- a/frontend/src/tools/bestellungen.jsx +++ b/frontend/src/tools/bestellungen.jsx @@ -37,7 +37,7 @@ function BestellungDetail({ id, toast, onBack }) { const [archiv, setArchiv] = useState([]); const [showPicker, setShowPicker] = useState(false); const [pickerSearch,setPickerSearch]= useState(''); - const [editMode, setEditMode] = useState(!id); + const [editMode, setEditMode] = useState(false); const [form, setForm] = useState({ name:'', bemerkung:'', custom_price:'', status:'warteliste' }); useEffect(() => { @@ -175,7 +175,7 @@ function BestellungDetail({ id, toast, onBack }) { )} {/* Formular */} - {(editMode || !id) && !order?.bezahlt && ( + {(!id || editMode) && !order?.bezahlt && (