Skip to content

Fix custom categories not showing up when using the categories prop#961

Open
mahmed2000 wants to merge 1 commit into
missive:mainfrom
mahmed2000:sorting-custom-categories
Open

Fix custom categories not showing up when using the categories prop#961
mahmed2000 wants to merge 1 commit into
missive:mainfrom
mahmed2000:sorting-custom-categories

Conversation

@mahmed2000

Copy link
Copy Markdown

Fixes #951 and #959.

052badf added a new array to store the categories on first mount to filter on. Since the custom categories never pushed to it, they would never show up if the categories prop was used.

This just creates another array to store the custom categories, and makes the category prop filter on the combined original and custom categories.

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] categories order including custom category working in v5.2.2 but not in v5.6.0

1 participant