fix bugging lists on navigation
This commit is contained in:
@@ -32,9 +32,6 @@ export default React.memo((props) => {
|
|||||||
if (list.open === true) {
|
if (list.open === true) {
|
||||||
setHeight(0.5)
|
setHeight(0.5)
|
||||||
}
|
}
|
||||||
if (list.open === true && filteredItems.length === 0) {
|
|
||||||
setHeight(0.5)
|
|
||||||
}
|
|
||||||
}, [list.open]);
|
}, [list.open]);
|
||||||
// if item is added or removed
|
// if item is added or removed
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user