Skip to content

Commit 866e7af

Browse files
committed
lint
1 parent 5890066 commit 866e7af

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pages/Search/SearchTypeMenuWide.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ function Section({section, hash, activeItemIndex, sectionStartIndex, reportCount
7575
// notify the parent that the section is no longer collapsed.
7676
useEffect(() => {
7777
return () => {
78-
if (!isExpandedRef.current) {
79-
onCollapsedCallback(false);
78+
if (isExpandedRef.current) {
79+
return;
8080
}
81+
onCollapsedCallback(false);
8182
};
8283
}, []);
8384

0 commit comments

Comments
 (0)