From 8af91d31e88cfcaa8089b380db40ee4497577b14 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:14:32 +0000 Subject: [PATCH] Revert "fix nextpage = undefined" --- src/components/ChannelPage.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ChannelPage.vue b/src/components/ChannelPage.vue index 74c31dfd..8595483c 100644 --- a/src/components/ChannelPage.vue +++ b/src/components/ChannelPage.vue @@ -142,7 +142,7 @@ export default { }); }, handleScroll() { - if (this.loading || !this.channel) return; + if (this.loading || !this.channel || !this.channel.nextpage) return; if (window.innerHeight + window.scrollY >= document.body.offsetHeight - window.innerHeight) { this.loading = true; if (this.selectedTab == 0) { @@ -153,7 +153,6 @@ export default { } }, fetchChannelNextPage() { - if (!this.channel.nextpage) return; this.fetchJson(this.apiUrl() + "/nextpage/channel/" + this.channel.id, { nextpage: this.channel.nextpage, }).then(json => { @@ -164,7 +163,6 @@ export default { }); }, fetchChannelTabNextPage() { - if (!this.tabNextPage) return; this.fetchJson(this.apiUrl() + "/channels/tabs", { data: this.tabs[this.selectedTab].data, nextpage: this.tabNextPage,