Dateien nach "frontend/src/tools" hochladen
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user