aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-13 10:06:46 +0100
committerChocobozzz <me@florianbigard.com>2021-12-13 10:06:46 +0100
commit82c082d9ed4c2253ec70830583815a64cc7226f7 (patch)
tree12174fce5d6787385ac393831a8a605a63a8eed0 /client/src/app
parentd63e6d4604dfbe4938c7d66832c9202364c5bb64 (diff)
downloadPeerTube-82c082d9ed4c2253ec70830583815a64cc7226f7.tar.gz
PeerTube-82c082d9ed4c2253ec70830583815a64cc7226f7.tar.zst
PeerTube-82c082d9ed4c2253ec70830583815a64cc7226f7.zip
Fix homepage
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/shared-search/search.service.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-search/search.service.ts b/client/src/app/shared/shared-search/search.service.ts
index 415bf083c..61acfb466 100644
--- a/client/src/app/shared/shared-search/search.service.ts
+++ b/client/src/app/shared/shared-search/search.service.ts
@@ -39,7 +39,7 @@ export class SearchService {
39 }): Observable<ResultList<Video>> { 39 }): Observable<ResultList<Video>> {
40 const { search, uuids, componentPagination, advancedSearch } = parameters 40 const { search, uuids, componentPagination, advancedSearch } = parameters
41 41
42 if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'videos') { 42 if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'videos') {
43 return of({ total: 0, data: [] }) 43 return of({ total: 0, data: [] })
44 } 44 }
45 45
@@ -77,7 +77,7 @@ export class SearchService {
77 }): Observable<ResultList<VideoChannel>> { 77 }): Observable<ResultList<VideoChannel>> {
78 const { search, advancedSearch, componentPagination, handles } = parameters 78 const { search, advancedSearch, componentPagination, handles } = parameters
79 79
80 if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'channels') { 80 if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'channels') {
81 return of({ total: 0, data: [] }) 81 return of({ total: 0, data: [] })
82 } 82 }
83 83
@@ -115,7 +115,7 @@ export class SearchService {
115 }): Observable<ResultList<VideoPlaylist>> { 115 }): Observable<ResultList<VideoPlaylist>> {
116 const { search, advancedSearch, componentPagination, uuids } = parameters 116 const { search, advancedSearch, componentPagination, uuids } = parameters
117 117
118 if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'playlists') { 118 if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'playlists') {
119 return of({ total: 0, data: [] }) 119 return of({ total: 0, data: [] })
120 } 120 }
121 121