mirror of
https://github.com/minio/minio.git
synced 2025-11-11 06:20:14 -05:00
browser: Send correct arguments for RemoveObjects web handler. (#3848)
Fixes #3839
This commit is contained in:
committed by
Harshavardhana
parent
05e53f1b34
commit
0bae3330e8
@@ -228,12 +228,13 @@ export default class Browse extends React.Component {
|
||||
removeObject() {
|
||||
const {web, dispatch, currentPath, currentBucket, deleteConfirmation} = this.props
|
||||
web.RemoveObject({
|
||||
bucketName: currentBucket,
|
||||
objectName: deleteConfirmation.object
|
||||
bucketname: currentBucket,
|
||||
objects: [deleteConfirmation.object]
|
||||
})
|
||||
.then(() => {
|
||||
this.hideDeleteConfirmation()
|
||||
dispatch(actions.removeObject(deleteConfirmation.object))
|
||||
let delObject = deleteConfirmation.object.replace(currentPath, '')
|
||||
dispatch(actions.removeObject(delObject))
|
||||
})
|
||||
.catch(e => dispatch(actions.showAlert({
|
||||
type: 'danger',
|
||||
@@ -759,4 +760,4 @@ export default class Browse extends React.Component {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user