mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-05 04:40:20 +03:00
Fix ESLint react-hooks/exhaustive-deps
This commit is contained in:
parent
14c928e5a9
commit
579e6fcf10
|
@ -17,7 +17,7 @@ export default function Accordion({ title, id, expanded = false, spaced = false,
|
|||
[classes.hidden]: isExpanded,
|
||||
})
|
||||
// Make sure accordion is expanded if JS is disabled
|
||||
useEffect(() => setIsExpanded(expanded), [])
|
||||
useEffect(() => setIsExpanded(expanded), [expanded])
|
||||
return (
|
||||
<section className="accordion" id={id}>
|
||||
<div className={rootClassNames}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user