fix rename issue

pull/4446/head
Joseph Izang 9 months ago
parent 5f5e861860
commit 7ae20c7756
  1. 1
      libs/remix-ui/workspace/src/lib/components/file-explorer.tsx

@ -131,6 +131,7 @@ export const FileExplorer = (props: FileExplorerProps) => {
const renamePath = async (oldPath: string, newPath: string) => { const renamePath = async (oldPath: string, newPath: string) => {
try { try {
if (oldPath === newPath) return
props.dispatchRenamePath(oldPath, newPath) props.dispatchRenamePath(oldPath, newPath)
} catch (error) { } catch (error) {
props.modal( props.modal(

Loading…
Cancel
Save