mirror of
https://github.com/minio/minio.git
synced 2025-11-23 02:57:42 -05:00
Tweak fetchBuckets to comply with the changes made to the routes (#5592)
This commit removes the argument in the fetchBuckets function that was introduced in #5580. Due to the adjustment made in #5584, we no longer need to differentiate between where the function has been called from.
This commit is contained in:
committed by
Harshavardhana
parent
6a15b89b9a
commit
384b4fdf28
@@ -28,7 +28,7 @@ export class BucketList extends React.Component {
|
||||
componentWillMount() {
|
||||
const { fetchBuckets, setBucketList, selectBucket } = this.props
|
||||
if (web.LoggedIn()) {
|
||||
fetchBuckets("list")
|
||||
fetchBuckets()
|
||||
} else {
|
||||
const { bucket, prefix } = pathSlice(history.location.pathname)
|
||||
if (bucket) {
|
||||
@@ -65,7 +65,7 @@ const mapStateToProps = state => {
|
||||
|
||||
const mapDispatchToProps = dispatch => {
|
||||
return {
|
||||
fetchBuckets: action => dispatch(actionsBuckets.fetchBuckets(action)),
|
||||
fetchBuckets: () => dispatch(actionsBuckets.fetchBuckets()),
|
||||
setBucketList: buckets => dispatch(actionsBuckets.setList(buckets)),
|
||||
selectBucket: bucket => dispatch(actionsBuckets.selectBucket(bucket))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user