Skip to content

Commit

Permalink
add filter for active error tags
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Oct 22, 2024
1 parent 4ba1d3f commit b6cd4ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ErrorTagDropdown/ErrorTagDropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ const SelectOptions = (props) => {
const ErrorTagDropdown = (props) => {
const options = useErrorTagOptions();

if (options.data) {
options.data = options.data.filter(option => option.active)
}

return (
<div className="mr-mt-4">
{props.errorTags?.length ? props.errorTags.map((rt, index) => {
Expand Down

0 comments on commit b6cd4ef

Please sign in to comment.