mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-25 05:28:29 +03:00
Cleanup
This commit is contained in:
parent
5000687a23
commit
6e77cef1e5
@ -76,16 +76,10 @@ function Exports() {
|
|||||||
grouped[caseId] = [];
|
grouped[caseId] = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exportFilter?.cameras?.length) {
|
grouped[caseId].push(exp);
|
||||||
if (exportFilter.cameras.includes(exp.camera)) {
|
|
||||||
grouped[caseId].push(exp);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
grouped[caseId].push(exp);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return grouped;
|
return grouped;
|
||||||
}, [rawExports, exportFilter]);
|
}, [rawExports]);
|
||||||
|
|
||||||
const filteredCases = useMemo<ExportCase[]>(() => {
|
const filteredCases = useMemo<ExportCase[]>(() => {
|
||||||
if (!cases) {
|
if (!cases) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user