Skip to content

Commit

Permalink
feat: adiciona verificação para evitar processamento de escolhas nula…
Browse files Browse the repository at this point in the history
…s no filtro de acordeão
  • Loading branch information
AldemirLucas committed Jan 24, 2025
1 parent 16dd4bc commit 99b403f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions next/components/atoms/FilterAccordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export function CheckboxFilterAccordion({
const [inputFocus, setInputFocus] = useState(false)

useEffect(() => {
if (choices === null) return
if (choices.length === 0) return
setOptions(choices)
}, [choices])
Expand Down

0 comments on commit 99b403f

Please sign in to comment.