Don't try to fetch the initial unsplash results when unsplash backgrounds are disabled
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-05-31 23:39:08 +02:00
parent 0b154936e7
commit 5a7c07ca4d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -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', {})