Skip to content

Commit 35afafd

Browse files
committed
fix: stop adding side panel for epic list
1 parent dd7748f commit 35afafd

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ async function enhanceIssueDetailPage() {
747747
);
748748
}
749749

750-
function enhanceIssueList() {
750+
export function enhanceIssueList() {
751751
ensurePanelLayout();
752752

753753
waitForKeyElements('ul.issues-list > li', (issue: Element) => {
@@ -852,8 +852,6 @@ const mergeRequestDetailRegex = /\/merge_requests\/(\d+)/;
852852

853853
const mergeRequestListRegex = /\/merge_requests(?!\/\d+)/;
854854

855-
const epicListRegex = /\/epics(?!\/\d+)/;
856-
857855
// When the board is the only board in the repo, the url is `/boards`
858856
const issueBoardRegex = /\/boards(?:\/\d+)?(?:\/)?(?:\?|$)/;
859857

@@ -870,11 +868,6 @@ const enhance = () => {
870868
enhanceIssueDetailPage();
871869
}
872870

873-
if (epicListRegex.test(window.location.href)) {
874-
// epic list has the same style with issue list.
875-
enhanceIssueList();
876-
}
877-
878871
if (issueBoardRegex.test(window.location.href)) {
879872
enhanceIssueBoard();
880873
}

0 commit comments

Comments
 (0)