Skip to content

Commit

Permalink
feat: pagination support for payouts table (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarnaikjuspay authored Aug 27, 2024
1 parent 0678545 commit af1aafa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/screens/Payouts/PayoutsList.res
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ let make = () => {
customColumnMapper=TableAtoms.payoutsMapDefaultCols
showSerialNumberInCustomizeColumns=false
sortingBasedOnDisabled=false
showResultsPerPageSelector=false
/>
</PageLoaderWrapper>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Payouts/PayoutsUtils.res
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let getPayoutsList = async (
let payoutsUrl = getURL(~entityName=PAYOUTS, ~methodType=Post)
let res = await updateDetails(payoutsUrl, filterValueJson->JSON.Encode.object, Post)
let data = res->getDictFromJsonObject->getArrayFromDict("data", [])
let total = res->getDictFromJsonObject->getInt("size", 0)
let total = res->getDictFromJsonObject->getInt("total_count", 0)

let arr = Array.make(~length=offset, Dict.make())
if total <= offset {
Expand Down

0 comments on commit af1aafa

Please sign in to comment.