Allow search to load on server side render

This commit is contained in:
Robbie Antenesse 2020-09-20 17:24:12 -06:00
parent 8f9fe6e97d
commit d2c0c289ab
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ class SearchController extends ViewController {
}
get hasQuery() {
return this.appState.query.hasOwnProperty('for') && this.appState.query.for.trim() !== '';
return typeof window !== 'undefined'
&& this.appState.query.hasOwnProperty('for') && this.appState.query.for.trim() !== '';
}
get queryIsNew() {