Skip to content

Commit 72edea9

Browse files
committed
fix: remove duplicate useEffect
1 parent dd99aef commit 72edea9

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/generic/expandable-card/ExpandableCard.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@ export const ExpandableCard = ({
4646
return () => resizeObserver.disconnect();
4747
}, [maxHeight, children]);
4848

49-
useEffect(() => {
50-
if (contentRef.current) {
51-
const { scrollHeight } = contentRef.current;
52-
setNeedsExpansion(scrollHeight > maxHeight);
53-
}
54-
}, [children, maxHeight]);
55-
5649
return (
5750
<div>
5851
<div

0 commit comments

Comments
 (0)