add missing return in methods

This commit is contained in:
Thomas Amland
2020-12-27 16:54:09 +01:00
parent ca94462d93
commit d002a5c09a
4 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
methods: {
loadMore() {
this.loading = true
this.load(this.offset).then((items: any[]) => {
return this.load(this.offset).then((items: any[]) => {
this.items.push(...items)
this.offset += items.length
this.hasMore = items.length > 0