File tree Expand file tree Collapse file tree
RuntimeTransactionDetailPage Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Avoid query param conflict in tx details view
Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ export const RuntimeTransactionDetailView: FC<{
146146 offset : 0 ,
147147 }
148148 : undefined ,
149+ 'workaroundQueryParamOverwrittenByOffset' ,
149150 )
150151 const transfers = transferEventsQuery ?. results ?. data
151152 const totalTransfers = transferEventsQuery ?. results ?. tablePaginationProps ?. totalCount
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export const useNFTInstanceTransfers = (
5151export const useTokenTransfers = (
5252 scope : undefined | RuntimeScope ,
5353 params : undefined | GetRuntimeEventsParams ,
54+ querySearchParamName ?: string ,
5455) => {
5556 if ( params && Object . values ( params ) . some ( value => value === undefined || value === null ) ) {
5657 throw new Error ( 'Must set params=undefined while some values are unavailable' )
@@ -61,7 +62,7 @@ export const useTokenTransfers = (
6162 const mockScopeForDisabledQuery = { network : 'mainnet' , layer : 'sapphire' } as const
6263
6364 const pagination = useComprehensiveSearchParamsPagination < RuntimeEvent , RuntimeEventList > ( {
64- paramName : 'page' ,
65+ paramName : querySearchParamName ?? 'page' ,
6566 pageSize : NUMBER_OF_ITEMS_ON_SEPARATE_PAGE ,
6667 } )
6768 const query = useGetRuntimeEvents (
You can’t perform that action at this time.
0 commit comments