mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 02:39:03 +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,
|
||||
);
|
||||
|
||||
console.log(error);
|
||||
|
||||
const beerPosts = data?.flatMap((d) => d.beerPosts) ?? [];
|
||||
const pageCount = data?.[0].pageCount ?? 0;
|
||||
const isLoadingMore = size > 0 && data && typeof data[size - 1] === 'undefined';
|
||||
|
||||
Reference in New Issue
Block a user