Skip to content

Commit 528fd70

Browse files
authored
Merge pull request #42 from storyprotocol/allen/fix-edge-limit-chain
Allen/fix edge limit chain
2 parents 23539d1 + e27d75b commit 528fd70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/storykit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@storyprotocol/storykit",
33
"author": "storyprotocol engineering <eng@storyprotocol.xyz>",
4-
"version": "0.1.26",
4+
"version": "0.1.27",
55
"type": "module",
66
"exports": {
77
".": {

packages/storykit/src/providers/IpProvider/IpProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const IpProvider = ({
162162
}
163163
return listResource(RESOURCE_TYPE.ASSET_EDGES, currentOptions)
164164
},
165-
getNextPageParam: (lastPage, allPages) => {
165+
getNextPageParam: (lastPage: AssetEdges[], allPages: AssetEdges[][]) => {
166166
const totalFetched = allPages.flat().length
167167
return totalFetched < lastPage.length ? totalFetched : undefined
168168
},
@@ -305,7 +305,7 @@ export const IpProvider = ({
305305
isAssetDataLoading,
306306
assetParentData,
307307
isAssetParentDataLoading,
308-
assetChildrenData: assetChildrenData?.pages.flatMap((page) => page),
308+
assetChildrenData: assetChildrenData?.pages.flatMap((page: AssetEdges[]) => page),
309309
loadMoreAssetChildren,
310310
isAssetChildrenDataLoading,
311311
ipaMetadata,

0 commit comments

Comments
 (0)