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 buildThemeList() function to ensure no duplicates #1466

Merged
merged 2 commits into from
Jun 22, 2023

Conversation

scme0
Copy link
Contributor

@scme0 scme0 commented Jun 22, 2023

Duplicates were created because the custom themes were added to the global themes property each time the function was called.

Fixes #1411

Copy link
Contributor

@alectrocute alectrocute left a comment

Choose a reason for hiding this comment

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

LGTM!

@dessalines dessalines merged commit 0247f8a into LemmyNet:main Jun 22, 2023
@scme0 scme0 deleted the scme/fix-duplicate-themes-in-dropdown branch June 22, 2023 12:57
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 22, 2023
…eview-to-desktop

* origin/main: (40 commits)
  Adding jsit to codeowners.
  Cleanup, only check for /u/ if /c/ and /m/ checks fail
  Rename function to be more generic, since it parses users
  Typescript linter fixes
  bandaid fix our video embeds
  Remove pipe from community link regex
  Add missing classes
  Use shorter regex in community link parser
  Move regex pattern to config
  Update community link markdown parsing
  Fix avatar alignment issue (LemmyNet#1475)
  Omit user-scalable to use default
  Update getHttpBase dependency reference
  Enable users to zoom on mobile
  rethink it a bit
  rethink it a bit
  add fallback style tag
  move env utils into folder
  fix capitalization (LemmyNet#1467)
  Fix buildThemeList() function to ensure no duplicates (LemmyNet#1466)
  ...
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.

[Bug]: Custom theme item gets duplicated in user settings dropdown
3 participants