ignore dropping on non-folder files

This commit is contained in:
Francesco Sansalvadore committed 2025-08-29 18:05:53 +02:00
1 parent ad765e2edd
commit d2c01ce912
1 file changed
+7 -1
@@ -270,7 +270,13 @@ const FileExplorerRow: ItemRenderer<StorageItem, FileExplorerRowProps> = ({
// Apply drag and drop refs
if (canUpdateFiles && item.type !== STORAGE_ROW_TYPES.BUCKET) {
drag(drop(ref))
// Always apply drag ref
drag(ref)
// Only apply drop ref for folders
if (item.type === STORAGE_ROW_TYPES.FOLDER) {
drop(ref)
}
}
const onSelectFile = async (columnIndex: number, file: StorageItem) => {