Skip to content

Commit

Permalink
fix: folder delete action
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden-cao committed Nov 3, 2023
1 parent 793eff2 commit 912f85b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const ObjectList = memo<ObjectListProps>(function ObjectList() {
case 'delete':
case 'cancel':
const folder = record.objectName.endsWith('/');
if (folder) {
if (folder && menu === 'detail') {
return dispatch(
setObjectOperation({
operation: [`${record.bucketName}/${record.objectName}`, 'folder_detail'],
Expand Down

0 comments on commit 912f85b

Please sign in to comment.