Fixed default value for nulls in browse buckets (#379)

Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2020-11-06 18:47:07 -06:00
committed by GitHub
parent 63350e5492
commit efa614c773

View File

@@ -131,10 +131,8 @@ const BrowseBuckets = ({
api
.invoke("GET", `/api/v1/buckets?offset=${offset}&limit=${rowsPerPage}`)
.then((res: BucketList) => {
const buckets = get(res, "buckets", []);
setLoading(false);
setRecords(buckets);
setRecords(res.buckets || []);
setError("");
// if we get 0 results, and page > 0 , go down 1 page
if (