No need to remove spaces

This commit is contained in:
Nicolas Mowen 2024-04-19 08:20:17 -06:00
parent b5d00efa5b
commit 2fa5ea5200
2 changed files with 2 additions and 4 deletions

View File

@ -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);
}
},

View File

@ -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]);