Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk committed Jan 21, 2025
1 parent d4451e7 commit 0bb93b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/hooks/useScrollPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ export function useScrollPagination<
...params
} as TParams);

const { total: totalCount, list: dataList, ...restMetaData } = res;
const { total: totalCount, list: dataList, metaData: resMetaData } = res;

setTotal(totalCount);
setMetaData(restMetaData);
setMetaData(resMetaData);

if (scrollLoadType === 'top') {
const prevHeight = ScrollContainerRef?.current?.scrollHeight || 0;
Expand Down

0 comments on commit 0bb93b9

Please sign in to comment.