From 5a7c07ca4dc1d0380286c24cb4f11e5f20a6e31b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 May 2020 23:39:08 +0200 Subject: [PATCH] Don't try to fetch the initial unsplash results when unsplash backgrounds are disabled --- src/components/lists/settings/background.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/lists/settings/background.vue b/src/components/lists/settings/background.vue index a5cfb22c..44cd629d 100644 --- a/src/components/lists/settings/background.vue +++ b/src/components/lists/settings/background.vue @@ -82,6 +82,9 @@ }, methods: { newBackgroundSearch() { + if (!this.unsplashBackgroundEnabled) { + return + } // This is an extra method to reset a few things when searching to not break loading more photos. this.$set(this, 'backgroundSearchResult', []) this.$set(this, 'backgroundThumbs', {})