mirror of https://github.com/kcal-app/kcal.git
Fix load more behavior
This commit is contained in:
parent
a575622c9c
commit
ed1f69c96f
|
@ -46,8 +46,9 @@
|
|||
this.results = [...this.results, ...data.data.map(result => result.attributes)];
|
||||
if (this.number < data.meta.page['last-page']) {
|
||||
this.morePages = true;
|
||||
} else {
|
||||
this.number++;
|
||||
} else {
|
||||
this.morePages = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue