diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsx index e7b164a84e7dc5579de6876fb1e8d44742d6110d..d1c98ec48f26b82ad7322b97837e0c6ad8a26161 100644 --- a/packages/desktop-client/src/components/table.tsx +++ b/packages/desktop-client/src/components/table.tsx @@ -848,13 +848,14 @@ type TableHandleRef<T extends TableItem = TableItem> = { type TableWithNavigatorProps = TableProps & { fields; }; -export const TableWithNavigator = forwardRef< - TableHandleRef<TableItem>, - TableWithNavigatorProps ->(({ fields, ...props }) => { + +export function TableWithNavigator({ + fields, + ...props +}: TableWithNavigatorProps) { const navigator = useTableNavigator(props.items, fields); return <Table {...props} navigator={navigator} />; -}); +} type TableItem = { id: number | string }; diff --git a/upcoming-release-notes/2277.md b/upcoming-release-notes/2277.md new file mode 100644 index 0000000000000000000000000000000000000000..9cd912ce52f7bf0e9c0994d04f9814ecb5c33a8d --- /dev/null +++ b/upcoming-release-notes/2277.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [twk3] +--- + +Fix a missing ref param warning for forwardRef