Fix homepage

pull/4636/head
Chocobozzz 2021-12-13 10:06:46 +01:00
parent d63e6d4604
commit 82c082d9ed
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ export class SearchService {
}): Observable<ResultList<Video>> { }): Observable<ResultList<Video>> {
const { search, uuids, componentPagination, advancedSearch } = parameters const { search, uuids, componentPagination, advancedSearch } = parameters
if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'videos') { if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'videos') {
return of({ total: 0, data: [] }) return of({ total: 0, data: [] })
} }
@ -77,7 +77,7 @@ export class SearchService {
}): Observable<ResultList<VideoChannel>> { }): Observable<ResultList<VideoChannel>> {
const { search, advancedSearch, componentPagination, handles } = parameters const { search, advancedSearch, componentPagination, handles } = parameters
if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'channels') { if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'channels') {
return of({ total: 0, data: [] }) return of({ total: 0, data: [] })
} }
@ -115,7 +115,7 @@ export class SearchService {
}): Observable<ResultList<VideoPlaylist>> { }): Observable<ResultList<VideoPlaylist>> {
const { search, advancedSearch, componentPagination, uuids } = parameters const { search, advancedSearch, componentPagination, uuids } = parameters
if (advancedSearch.resultType !== undefined && advancedSearch.resultType !== 'playlists') { if (advancedSearch?.resultType !== undefined && advancedSearch.resultType !== 'playlists') {
return of({ total: 0, data: [] }) return of({ total: 0, data: [] })
} }