diff --git a/packages/ui/src/components/editor/panels/Files/container/index.tsx b/packages/ui/src/components/editor/panels/Files/container/index.tsx index d482fd29ac..7873054b4e 100644 --- a/packages/ui/src/components/editor/panels/Files/container/index.tsx +++ b/packages/ui/src/components/editor/panels/Files/container/index.tsx @@ -269,7 +269,7 @@ const FileBrowserContentPanel: React.FC = (props) moveContent(data.fullName, data.fullName, data.path, path, false) } } else { - const relativePath = folder.replace('projects/' + projectName + '/', '') + const relativePath = folder.replace('projects/' + projectName + '/', '').replace(/^\//gi, '') await Promise.all( data.files.map(async (file) => { const assetType = !file.type ? AssetLoader.getAssetType(file.name) : file.type