Skip to content

Commit

Permalink
πŸ’„ front: trim filename before rename operation (fixes #660)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlinagora committed Sep 27, 2024
1 parent 9018222 commit 279694a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const PropertiesModalContent = ({ id, onClose }: { id: string; onClose: () => vo
const doSave = async () => {
setLoading(true);
if (item) {
let finalName = name;
let finalName = (name || '').trim();
//TODO: Confirm rename if extension changed ?
if (!item?.is_directory) {
//TODO: Why do we trim extensions on folders ?
Expand Down

0 comments on commit 279694a

Please sign in to comment.