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

fix: pinned tabs filter #348

Merged
merged 2 commits into from
Jul 31, 2023
Merged

fix: pinned tabs filter #348

merged 2 commits into from
Jul 31, 2023

Conversation

Jannchie
Copy link
Contributor

  • Fixed a bug that "pinned" catalog could not be hidden by switch.
  • Fixed a bug that hiding the "app" catalog would also hide the "pinned" catalog.

Comment on lines 98 to 99
if (settings.pinnedTabs.value.includes(_tab.name))
_tab.category = 'pinned'
Copy link
Member

Choose a reason for hiding this comment

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

I guess we should not mutate the object, and not do it in a .filter()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, I will try to fix the problem without modifying the category.

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

Successfully merging this pull request may close these issues.

None yet

2 participants