Skip to content

Commit

Permalink
Merge pull request #29111 from tienifr/fix/28988
Browse files Browse the repository at this point in the history
Fix: 28988 parent for subcategories can be selected with arrow keys
  • Loading branch information
Julesssss authored Oct 10, 2023
2 parents 4bb1be2 + ba515e9 commit f78f8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CategoryPicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC
}, [selectedCategory]);

const sections = useMemo(() => {
const validPolicyRecentlyUsedCategories = _.filter(policyRecentlyUsedCategories, (p) => !_.isEmpty(p));
const {categoryOptions} = OptionsListUtils.getFilteredOptions(
{},
{},
Expand All @@ -43,7 +44,7 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC
false,
true,
policyCategories,
policyRecentlyUsedCategories,
validPolicyRecentlyUsedCategories,
false,
);

Expand Down

0 comments on commit f78f8aa

Please sign in to comment.