Skip to content

Commit 7bc8315

Browse files
author
winjo.gwj
committed
chore: add null for wrapRef
1 parent dfb6787 commit 7bc8315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/components/src/recycle-tree/RecycleTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ export class RecycleTree extends React.Component<IRecycleTreeProps> {
866866
private renderItem = ({ index, style }): JSX.Element => {
867867
const { children, overflow = 'ellipsis', supportDynamicHeights } = this.props;
868868
const node = this.getItemAtIndex(index) as IFilterNodeRendererProps;
869-
const wrapRef = useRef<HTMLDivElement>();
869+
const wrapRef = useRef<HTMLDivElement | null>(null);
870870
if (!node) {
871871
return <></>;
872872
}

0 commit comments

Comments
 (0)