Skip to content

Commit 7ae20c7

Browse files
committed
fix rename issue
1 parent 5f5e861 commit 7ae20c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/remix-ui/workspace/src/lib/components/file-explorer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
131131

132132
const renamePath = async (oldPath: string, newPath: string) => {
133133
try {
134+
if (oldPath === newPath) return
134135
props.dispatchRenamePath(oldPath, newPath)
135136
} catch (error) {
136137
props.modal(

0 commit comments

Comments
 (0)