File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/services/bundleAnalysis Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -253,8 +253,8 @@ export const BundleAssetsQueryOpts = ({
253
253
queryFn : ( { signal, pageParam } ) => {
254
254
// We have to do this, because infiniteQuery in Tanstack Query V5
255
255
// doesn't support undefined as a pageParam
256
- let assetsAfter : string | undefined = undefined
257
- if ( pageParam !== null ) {
256
+ let assetsAfter : string | null = null
257
+ if ( pageParam !== '' ) {
258
258
assetsAfter = pageParam
259
259
}
260
260
@@ -342,6 +342,8 @@ export const BundleAssetsQueryOpts = ({
342
342
}
343
343
} )
344
344
} ,
345
+ // We have to set this as an empty string, because the type for pageParam
346
+ // matches the type for initialPageParam.
345
347
initialPageParam : '' ,
346
348
getNextPageParam : ( data ) => {
347
349
return data ?. pageInfo ?. hasNextPage ? data ?. pageInfo ?. endCursor : null
You can’t perform that action at this time.
0 commit comments