Pagination problems on treasury page
martonp opened this issue · 1 comments
I did notice that the pagination seems to have a few bugs though. For example, if you refresh the page with a transaction type selected (spend in this case), it'll show the correct number of transactions (e.g. showing 1 -- 4 of 4 transactions
), but if you select All
from the type dropdown and then go back to Spend
, it doesn't update properly (e.g. showing 1 – 20 of 123,607 transactions
).
I also noticed the next link is not disabled when when there are no more results as would be expected.
For example, if you start at https://explorer.dcrdata.org/treasury?txntype=tspend, the next link is active and if you click it, the pagination changes to showing 21 – 40 of 123,608 transactions
although there are not any actual results displayed.
Originally posted by @davecgh in #1924 (comment)
I'll fix this.