summaryrefslogtreecommitdiff
path: root/source/features/recently-pushed-branches-enhancements.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/recently-pushed-branches-enhancements.tsx')
-rw-r--r--source/features/recently-pushed-branches-enhancements.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/features/recently-pushed-branches-enhancements.tsx b/source/features/recently-pushed-branches-enhancements.tsx
index 3c97d856..9ee72de9 100644
--- a/source/features/recently-pushed-branches-enhancements.tsx
+++ b/source/features/recently-pushed-branches-enhancements.tsx
@@ -7,7 +7,7 @@ import * as pageDetect from 'github-url-detection';
import features from '.';
import {getRepo} from '../github-helpers';
-const fragmentURL = `/${getRepo()!.nameWithOwner}/show_partial?partial=tree%2Frecently_touched_branches_list`;
+const fragmentURL = `/${getRepo()?.nameWithOwner!}/show_partial?partial=tree%2Frecently_touched_branches_list`;
const selector = `[data-url='${fragmentURL}' i], [src='${fragmentURL}' i]`;
// Ajaxed pages will load a new fragment on every ajaxed load, but we only really need the one generated on the first load