From 6a8fda98f257f2dff7fb039ca7ea94aec8208794 Mon Sep 17 00:00:00 2001
From: yakov116 <16872793+yakov116@users.noreply.github.com>
Date: Sun, 18 Oct 2020 01:06:29 -0400
Subject: Avoid errors caused by `more-dropdown` on issues (#3653)

Co-authored-by: Federico <me@fregante.com>
Co-authored-by: Laxman <bytemode@outlook.com>
---
 source/features/enable-file-links-in-compare-view.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'source/features/enable-file-links-in-compare-view.tsx')

diff --git a/source/features/enable-file-links-in-compare-view.tsx b/source/features/enable-file-links-in-compare-view.tsx
index aad7084c..e0a778dd 100644
--- a/source/features/enable-file-links-in-compare-view.tsx
+++ b/source/features/enable-file-links-in-compare-view.tsx
@@ -16,7 +16,7 @@ function handlePRMenuOpening({delegateTarget: dropdown}: delegate.Event): void {
 	const filePath = dropdown.closest('[data-path]')!.getAttribute('data-path')!;
 
 	const viewFile = select<HTMLAnchorElement>('[data-ga-click^="View file"]', dropdown)!;
-	viewFile.pathname = [user, repository, 'blob', getCurrentBranch(), filePath].join('/'); // Do not replace with `GitHubURL`  #3152 #3111 #2595
+	viewFile.pathname = [user, repository, 'blob', getCurrentBranch()!, filePath].join('/'); // Do not replace with `GitHubURL`  #3152 #3111 #2595
 }
 
 function handleCompareMenuOpening({delegateTarget: dropdown}: delegate.Event): void {
-- 
cgit v1.2.3

