Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
fix drag and drop on file browser (#10448)
Browse files Browse the repository at this point in the history
* fix drag and drop on file browser

* remove console log
  • Loading branch information
aditya-mitra authored Jun 26, 2024
1 parent 9c89c78 commit 6c3b50e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const FileBrowserContentPanel: React.FC<FileBrowserContentPanelProps> = (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
Expand Down

0 comments on commit 6c3b50e

Please sign in to comment.