Skip to content

A local-first personal finance app

:bug: Fix a missing ref param warning for forwardRef (#2277)

DJ Mountney5adb08357555
diff --git a/packages/desktop-client/src/components/table.tsx b/packages/desktop-client/src/components/table.tsx
index e7b164a84e..d1c98ec48f 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 0000000000..9cd912ce52
--- /dev/null
+++ b/upcoming-release-notes/2277.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [twk3]
+---
+
+Fix a missing ref param warning for forwardRef