aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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