mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -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 = () => {
|
export const listObjects = () => {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const {currentBucket, currentPath, marker, objects, istruncated, web} = getState()
|
const {buckets, currentBucket, currentPath, marker, objects, istruncated, web} = getState()
|
||||||
if (!istruncated) return
|
if (!istruncated || buckets.length === 0) return
|
||||||
web.ListObjects({
|
web.ListObjects({
|
||||||
bucketName: currentBucket,
|
bucketName: currentBucket,
|
||||||
prefix: currentPath,
|
prefix: currentPath,
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user