This commit is contained in:
Matthias Hochmeister
2026-03-13 21:16:44 +01:00
parent 461d28fa0d
commit 0d4e7b480d
2 changed files with 115 additions and 18 deletions

View File

@@ -205,9 +205,7 @@ function Atemschutz() {
const q = search.toLowerCase();
return traeger.filter((item) => {
const name = getDisplayName(item).toLowerCase();
const email = item.user_email.toLowerCase();
const dienstgrad = (item.dienstgrad || '').toLowerCase();
return name.includes(q) || email.includes(q) || dienstgrad.includes(q);
return name.includes(q);
});
}, [traeger, search]);
@@ -489,7 +487,6 @@ function Atemschutz() {
<TableHead>
<TableRow>
<TableCell>Name</TableCell>
<TableCell>Dienstgrad</TableCell>
<TableCell align="center">Lehrgang</TableCell>
<TableCell>Untersuchung gültig bis</TableCell>
<TableCell>Leistungstest gültig bis</TableCell>
@@ -516,14 +513,6 @@ function Atemschutz() {
<Typography variant="body2" fontWeight={500}>
{getDisplayName(item)}
</Typography>
<Typography variant="caption" color="text.secondary">
{item.user_email}
</Typography>
</TableCell>
<TableCell>
<Typography variant="body2">
{item.dienstgrad || '—'}
</Typography>
</TableCell>
<TableCell align="center">
{item.atemschutz_lehrgang ? (