Don't try to fetch the initial unsplash results when unsplash backgrounds are disabled
This commit is contained in:
parent
0b154936e7
commit
5a7c07ca4d
1 changed files with 3 additions and 0 deletions
|
@ -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', {})
|
||||
|
|
Loading…
Reference in a new issue