Skip to content

Commit

Permalink
fixed categories showing when they shouldnt be
Browse files Browse the repository at this point in the history
  • Loading branch information
khanguyen7 committed Mar 20, 2023
1 parent 8b4daf1 commit 82737ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function SelectAreaAccordion({ searchValue }: Props) {
const elements = keyboardKeyElements.filter((element) => {
return HIDCategory[element.category] === categoryName
})
temp.push({ name: categoryName, elements: elements })
if (elements.length > 0) temp.push({ name: categoryName, elements: elements })
}
return temp
}, [keyboardKeyElements])
Expand Down Expand Up @@ -79,7 +79,7 @@ export default function SelectAreaAccordion({ searchValue }: Props) {
// const elements = pluginElements.filter((element) => {
// return PluginGroup[element.pluginGroup] === groupName
// })
// temp.push({ name: groupName, elements: elements })
// if (elements.length > 0) temp.push({ name: groupName, elements: elements })
// }
// return temp
// }, [pluginElements])
Expand Down

0 comments on commit 82737ef

Please sign in to comment.