Skip to content

Commit

Permalink
fix(pi): load more button needs to be clicked twice
Browse files Browse the repository at this point in the history
If the number of available envelopes is lower than the initial page size,
the list will still be expanded without any effect. Only the second click
will trigger loading more envelopes.

Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed May 10, 2024
1 parent ad0bc9b commit e74b41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Mailbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export default {
}
},
async loadMore() {
if (!this.expanded) {
if (!this.expanded && this.envelopesToShow.length < this.envelopes.length) {
logger.debug('expanding envelope list')
this.expanded = true
return
Expand Down

0 comments on commit e74b41a

Please sign in to comment.