From 4de8f92a6caafef1b26f31f1014b33907da65501 Mon Sep 17 00:00:00 2001 From: Artur Date: Mon, 30 Dec 2024 12:52:12 +0200 Subject: [PATCH] chore: Make compatible with React 19 types (#3088) --- packages/ts/react-crud/src/autogrid.tsx | 2 +- packages/ts/react-crud/src/header-filter.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ts/react-crud/src/autogrid.tsx b/packages/ts/react-crud/src/autogrid.tsx index cf22644ecb..d856397f8d 100644 --- a/packages/ts/react-crud/src/autogrid.tsx +++ b/packages/ts/react-crud/src/autogrid.tsx @@ -319,7 +319,7 @@ function AutoGridInner( const [internalFilter, setInternalFilter] = useState({ '@type': 'and', children: [] }); const [itemCounts, setItemCounts] = useState(); const gridRef = useRef>(null); - const dataProviderRef = useRef>(); + const dataProviderRef = useRef>(undefined); useImperativeHandle( ref, diff --git a/packages/ts/react-crud/src/header-filter.tsx b/packages/ts/react-crud/src/header-filter.tsx index 423005d709..9d791cd553 100644 --- a/packages/ts/react-crud/src/header-filter.tsx +++ b/packages/ts/react-crud/src/header-filter.tsx @@ -94,7 +94,7 @@ function useFilterState(initialMatcher: Matcher) { } // Workaround for https://github.com/vaadin/react-components/issues/148 -function useSelectInitWorkaround(selectRef: RefObject) { +function useSelectInitWorkaround(selectRef: RefObject) { useEffect(() => { setTimeout(() => { if (selectRef.current) {