From 039ab1308b8ba6475dac271bcb57a74a8e1cbf5b Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Tue, 27 Oct 2020 12:27:33 +0100
Subject: [PATCH] FEAT #15265 TIME 0:10 fix js error

---
 .../app/search/result-list/search-result-list.component.ts    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/frontend/app/search/result-list/search-result-list.component.ts b/src/frontend/app/search/result-list/search-result-list.component.ts
index d54b0aec1bb..3fc0335ee30 100644
--- a/src/frontend/app/search/result-list/search-result-list.component.ts
+++ b/src/frontend/app/search/result-list/search-result-list.component.ts
@@ -287,7 +287,9 @@ export class SearchResultListComponent implements OnInit, OnDestroy {
                 startWith({}),
                 switchMap(() => {
                     if (!this.isLoadingResults) {
-                        this.sidenavRight.close();
+                        if (this.sidenavRight !== undefined) {
+                            this.sidenavRight.close();
+                        }
                         this.isLoadingResults = true;
                         this.loadingResult.emit(true);
                         return this.resultListDatabase!.getRepoIssues(
-- 
GitLab