fix bugging lists on navigation

This commit is contained in:
2021-11-02 23:52:01 +01:00
parent 8a9ebe2816
commit c4c82c23f8

View File

@@ -32,9 +32,6 @@ export default React.memo((props) => {
if (list.open === true) {
setHeight(0.5)
}
if (list.open === true && filteredItems.length === 0) {
setHeight(0.5)
}
}, [list.open]);
// if item is added or removed
useEffect(() => {