mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Merge pull request #57 from aaronpo97/dev-beer-styles
Merge branch 'beer-style-fix' into dev-beer-styles
This commit is contained in:
@@ -46,6 +46,8 @@ const useBeerPostsByBeerStyle = ({
|
|||||||
fetcher,
|
fetcher,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
console.log(error);
|
||||||
|
|
||||||
const beerPosts = data?.flatMap((d) => d.beerPosts) ?? [];
|
const beerPosts = data?.flatMap((d) => d.beerPosts) ?? [];
|
||||||
const pageCount = data?.[0].pageCount ?? 0;
|
const pageCount = data?.[0].pageCount ?? 0;
|
||||||
const isLoadingMore = size > 0 && data && typeof data[size - 1] === 'undefined';
|
const isLoadingMore = size > 0 && data && typeof data[size - 1] === 'undefined';
|
||||||
|
|||||||
Reference in New Issue
Block a user