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
master
Kaan Kabalak 7 years ago committed by Dee Koder
parent a1c1a18dc5
commit 67ac74471d
  1. 4
      browser/app/js/actions.js
  2. 81
      browser/ui-assets.go

@ -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…
Cancel
Save