diff --git a/desktop/flipper-plugin/src/ui/MasterDetail.tsx b/desktop/flipper-plugin/src/ui/MasterDetail.tsx index 7fb70b769..2a8c4474f 100644 --- a/desktop/flipper-plugin/src/ui/MasterDetail.tsx +++ b/desktop/flipper-plugin/src/ui/MasterDetail.tsx @@ -46,7 +46,10 @@ type MasterDetailProps = { * Component that accepts a 'record' prop that is used to render details. * If none is provided, a standard `DataInspector` component will be used to display the entire record. */ - sidebarComponent?: React.FC<{record: T}>; + sidebarComponent?: React.FC<{ + record: T; + tableManagerRef?: React.RefObject | undefined>; + }>; /** * Default size of the sidebar. */ @@ -114,6 +117,7 @@ export function MasterDetail({ sidebarPosition !== 'none' && selectedRecord && sidebarComponent ? createElement(sidebarComponent, { record: selectedRecord, + tableManagerRef, }) : null;