Allow search to load on server side render
This commit is contained in:
parent
8f9fe6e97d
commit
d2c0c289ab
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue