Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean-repo-tabs - Fix console error #8040

Merged
merged 1 commit into from
Nov 10, 2024
Merged

clean-repo-tabs - Fix console error #8040

merged 1 commit into from
Nov 10, 2024

Conversation

fregante
Copy link
Member

@fregante fregante commented Nov 10, 2024

@fregante fregante added the bug label Nov 10, 2024
@fregante fregante merged commit f1702cc into main Nov 10, 2024
11 checks passed
@fregante fregante deleted the clean-repo-tabs-errors branch November 10, 2024 11:31
if (!tabItem && pageDetect.isEnterprise()) { // GHE #3962
// TODO: Use selector observer
const tabItem = $optional(`li:not([hidden]) > [data-tab-item$="${id}"]`);
if (!tabItem) { // #3962 #7140
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't want to mess too much with this feature, but this could be rewritten as:

observe('both data-tab-items', onlyShowInDropdown)

and then extract the string ID inside onlyShowInDropdown, maybe the whole dataset.tabItem can be used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

clean-repo-tabs: menuItem is undefined
1 participant