mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35: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"] : [],
|
||||
(_, down, repeat) => {
|
||||
if (down && !repeat && editName && editName.update.length > 0) {
|
||||
onRename(editName.original, editName.update.replaceAll(" ", "_"));
|
||||
onRename(editName.original, editName.update);
|
||||
setEditName(undefined);
|
||||
}
|
||||
},
|
||||
|
||||
@ -39,9 +39,7 @@ function Export() {
|
||||
}
|
||||
|
||||
return allExports.filter((exp) =>
|
||||
exp.name
|
||||
.toLowerCase()
|
||||
.includes(search.toLowerCase().replaceAll(" ", "_")),
|
||||
exp.name.toLowerCase().includes(search.toLowerCase()),
|
||||
);
|
||||
}, [allExports, search]);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user