From d68015ca56586ab5265674331f94c41c9f802af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Gu=CC=88ell=20Segarra?= Date: Mon, 23 Sep 2024 13:50:40 +0200 Subject: [PATCH] fix: adjust few things in infinite table --- src/components/InfiniteTable/InfiniteTable.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; }, []);