Dateien nach "frontend/src/tools" hochladen

This commit is contained in:
2026-05-26 12:45:19 +02:00
parent bd358c581f
commit c315760a43

View File

@@ -463,8 +463,10 @@ export default function Bestellungen({ toast, mobile }) {
catch(e) { toast(e.message,'error'); } finally { setDelId(null); }
};
const sq = search.trim().toLowerCase();
const filtered = orders.filter(o => {
const ms = !search.trim() || o.name.toLowerCase().includes(search.toLowerCase());
const ms = !sq || o.name.toLowerCase().includes(sq)
|| (o.items && o.items.some(i => i.calc_name.toLowerCase().includes(sq)));
const mf = filterStatus==='alle'
? true
: filterStatus==='bezahlt'