mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 21:29:08 +03:00
ignore dropping on non-folder files
This commit is contained in:
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) => {
|
||||
|
||||
Reference in new issue
Block a user