Update hashtag component

This commit is contained in:
Daniel Supernault 2024-03-14 05:05:27 -06:00
parent 828a456f36
commit cee979eda8
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -202,16 +202,12 @@
if(res.data && res.data.length) { if(res.data && res.data.length) {
this.feed = res.data; this.feed = res.data;
this.maxId = res.data[res.data.length - 1].id; this.maxId = res.data[res.data.length - 1].id;
return true; this.canLoadMore = true;
} else { } else {
this.feedLoaded = true; this.feedLoaded = true;
this.isLoaded = true; this.isLoaded = true;
return false;
} }
}) })
.then(res => {
this.canLoadMore = res;
})
.finally(() => { .finally(() => {
this.feedLoaded = true; this.feedLoaded = true;
this.isLoaded = true; this.isLoaded = true;
@ -242,14 +238,11 @@
if(res.data && res.data.length) { if(res.data && res.data.length) {
this.feed.push(...res.data); this.feed.push(...res.data);
this.maxId = res.data[res.data.length - 1].id; this.maxId = res.data[res.data.length - 1].id;
return true; this.canLoadMore = true;
} else { } else {
return false; this.canLoadMore = false;
} }
}) })
.then(res => {
this.canLoadMore = res;
})
.finally(() => { .finally(() => {
this.isIntersecting = false; this.isIntersecting = false;
}) })