From ebc767cf097ad721aeef85bafc34092a0127aa88 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Wed, 7 Jul 2021 19:26:26 +0530 Subject: [PATCH] Fix search result caching. --- src/components/SearchResults.vue | 5 ----- src/components/WatchVideo.vue | 1 - 2 files changed, 6 deletions(-) diff --git a/src/components/SearchResults.vue b/src/components/SearchResults.vue index 67173864..c7ab748e 100644 --- a/src/components/SearchResults.vue +++ b/src/components/SearchResults.vue @@ -93,11 +93,6 @@ export default { deactivated() { window.removeEventListener("scroll", this.handleScroll); }, - watch: { - "$route.query.search_query": function(q) { - if (q) this.updateResults(); - }, - }, methods: { async fetchResults() { return await await this.fetchJson(this.apiUrl() + "/search", { diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 2867ddec..eea5d81c 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -135,7 +135,6 @@ export default { }, mounted() { this.getVideoData().then(() => { - console.log(this.video.title); this.$refs.videoPlayer.loadVideo(); }); this.getSponsors();