mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
No need to remove spaces
This commit is contained in:
parent
b5d00efa5b
commit
2fa5ea5200
@ -46,7 +46,7 @@ export default function ExportCard({
|
|||||||
editName != undefined ? ["Enter"] : [],
|
editName != undefined ? ["Enter"] : [],
|
||||||
(_, down, repeat) => {
|
(_, down, repeat) => {
|
||||||
if (down && !repeat && editName && editName.update.length > 0) {
|
if (down && !repeat && editName && editName.update.length > 0) {
|
||||||
onRename(editName.original, editName.update.replaceAll(" ", "_"));
|
onRename(editName.original, editName.update);
|
||||||
setEditName(undefined);
|
setEditName(undefined);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -39,9 +39,7 @@ function Export() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return allExports.filter((exp) =>
|
return allExports.filter((exp) =>
|
||||||
exp.name
|
exp.name.toLowerCase().includes(search.toLowerCase()),
|
||||||
.toLowerCase()
|
|
||||||
.includes(search.toLowerCase().replaceAll(" ", "_")),
|
|
||||||
);
|
);
|
||||||
}, [allExports, search]);
|
}, [allExports, search]);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user