Skip to content

Commit

Permalink
fix: collapsed results length is not same as total
Browse files Browse the repository at this point in the history
  • Loading branch information
SnosMe committed May 1, 2021
1 parent 4791494 commit 52ee6ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "awakened-poe-trade",
"version": "2.10.2",
"version": "2.10.3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
4 changes: 2 additions & 2 deletions src/web/price-check/trade/TradeListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ function useTradeApi () {
searchResult.value = _searchResult
{
const r1 = (_searchResult.total > 0)
const r1 = (_searchResult.result.length > 0)
? requestResults(_searchResult.id, _searchResult.result.slice(0, 10))
.then(results => { _fetchResults.push(...results) })
: Promise.resolve()
const r2 = (_searchResult.total > 10)
const r2 = (_searchResult.result.length > 10)
? requestResults(_searchResult.id, _searchResult.result.slice(10, 20))
.then(results => r1
.then(() => { _fetchResults.push(...results) }))
Expand Down

0 comments on commit 52ee6ff

Please sign in to comment.