From 82c082d9ed4c2253ec70830583815a64cc7226f7 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 Dec 2021 10:06:46 +0100 Subject: [PATCH] Fix homepage --- client/src/app/shared/shared-search/search.service.ts | 6 +++--- 1 file 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 { }): Observable> { 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: [] }) } @@ -77,7 +77,7 @@ export class SearchService { }): Observable> { 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: [] }) } @@ -115,7 +115,7 @@ export class SearchService { }): Observable> { 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: [] }) }