Skip to content

Commit

Permalink
fix(flat-components): fix file list empty rename (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Apr 1, 2021
1 parent df31ae9 commit 9e795d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const CloudStorageFileTitleRename = React.memo<CloudStorageFileTitleRenam
onRename &&
(() => {
const fullName = name + ext;
if (!name && fullName === fileName) {
if (!name || fullName === fileName) {
// cancel on empty and same name
onRename(fileUUID);
} else {
Expand Down

0 comments on commit 9e795d5

Please sign in to comment.