Skip to content

Commit

Permalink
chore: Make compatible with React 19 types (#3088) (CP: 24.6) (#3096)
Browse files Browse the repository at this point in the history
chore: Make compatible with React 19 types (#3088)

Co-authored-by: Artur <[email protected]>
  • Loading branch information
vaadin-bot and Artur- authored Dec 30, 2024
1 parent a5342d5 commit 9b34045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ts/react-crud/src/autogrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function AutoGridInner<TItem>(
const [internalFilter, setInternalFilter] = useState<AndFilter>({ '@type': 'and', children: [] });
const [itemCounts, setItemCounts] = useState<ItemCounts | undefined>();
const gridRef = useRef<GridElement<TItem>>(null);
const dataProviderRef = useRef<DataProvider<TItem>>();
const dataProviderRef = useRef<DataProvider<TItem>>(undefined);

useImperativeHandle(
ref,
Expand Down
2 changes: 1 addition & 1 deletion packages/ts/react-crud/src/header-filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function useFilterState(initialMatcher: Matcher) {
}

// Workaround for https://github.com/vaadin/react-components/issues/148
function useSelectInitWorkaround(selectRef: RefObject<SelectElement>) {
function useSelectInitWorkaround(selectRef: RefObject<SelectElement | null>) {
useEffect(() => {
setTimeout(() => {
if (selectRef.current) {
Expand Down

0 comments on commit 9b34045

Please sign in to comment.