()
| 482 | !!props.search && |
| 483 | [...props.search.match.children.values()].some((child) => child.hasMatch) |
| 484 | const isExpanded = () => expanded() || hasSearchMatchingChild() |
| 485 | const toggleExpanded = () => { |
| 486 | if (!hasSearchMatchingChild()) setExpanded((old) => !old) |
| 487 | } |
no test coverage detected