Skip to content

Commit

Permalink
Fix more-dropdown removing repo tabs container (#4168)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Mar 30, 2021
1 parent 8f319ab commit 00ddcbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/features/more-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function onlyShowInDropdown(id: string): void {
return;
}

tabItem!.parentElement!.remove();
tabItem!.closest('.UnderlineNav-item')!.remove();
const menuItem = select(`[data-menu-item$="${id}"]`)!;
menuItem.removeAttribute('data-menu-item');
menuItem.hidden = false;
Expand Down

0 comments on commit 00ddcbb

Please sign in to comment.