diff --git a/src/components/InfiniteTable/InfiniteTable.tsx b/src/components/InfiniteTable/InfiniteTable.tsx index ed73490..12c9cf1 100644 --- a/src/components/InfiniteTable/InfiniteTable.tsx +++ b/src/components/InfiniteTable/InfiniteTable.tsx @@ -384,12 +384,14 @@ const InfiniteTableComp = forwardRef( [onChangeFirstVisibleRowIndex], ); - useWhyDidYouRender("InfiniteTable", props); + // useWhyDidYouRender("InfiniteTable", props); const getAllNodeKeys = useCallback(() => { const allNodes: number[] = []; gridRef.current?.api?.forEachNode((node) => { - allNodes.push(node.data.id); + if (node?.data?.id) { + allNodes.push(node.data.id); + } }); return allNodes; }, []);