mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Fix error message on browser window resize when user has no buckets (#5275)
This commit handles the case where the list of buckets is empty on the listObjects function of actions.js Fixes #5267
This commit is contained in:
parent
a1c1a18dc5
commit
67ac74471d
@ -316,8 +316,8 @@ export const selectBucket = (newCurrentBucket, prefix) => {
|
||||
|
||||
export const listObjects = () => {
|
||||
return (dispatch, getState) => {
|
||||
const {currentBucket, currentPath, marker, objects, istruncated, web} = getState()
|
||||
if (!istruncated) return
|
||||
const {buckets, currentBucket, currentPath, marker, objects, istruncated, web} = getState()
|
||||
if (!istruncated || buckets.length === 0) return
|
||||
web.ListObjects({
|
||||
bucketName: currentBucket,
|
||||
prefix: currentPath,
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user