diff --git a/src/frontend/src/pages/FlowPage/components/TraceComponent/FlowInsightsContent.tsx b/src/frontend/src/pages/FlowPage/components/TraceComponent/FlowInsightsContent.tsx index f248ac9a4c..e470f95ca5 100644 --- a/src/frontend/src/pages/FlowPage/components/TraceComponent/FlowInsightsContent.tsx +++ b/src/frontend/src/pages/FlowPage/components/TraceComponent/FlowInsightsContent.tsx @@ -182,17 +182,14 @@ export function FlowInsightsContent({ setTracePanelOpen(true); }, []); - const handleCellKeyDown = useCallback( - (event: CellKeyDownEvent) => { - const keyboardEvent = event.event as KeyboardEvent | undefined; - if (keyboardEvent?.key === "Enter") { - const rowData = event.data as TraceListItem | undefined; - setTracePanelTraceId(rowData?.id ?? null); - setTracePanelOpen(true); - } - }, - [], - ); + const handleCellKeyDown = useCallback((event: CellKeyDownEvent) => { + const keyboardEvent = event.event as KeyboardEvent | undefined; + if (keyboardEvent?.key === "Enter") { + const rowData = event.data as TraceListItem | undefined; + setTracePanelTraceId(rowData?.id ?? null); + setTracePanelOpen(true); + } + }, []); const traceTableRef = useRef(null); @@ -447,9 +444,7 @@ export function FlowInsightsContent({ onFirstDataRendered={() => applyRowTabIndices(traceTableRef.current) } - onRowDataUpdated={() => - applyRowTabIndices(traceTableRef.current) - } + onRowDataUpdated={() => applyRowTabIndices(traceTableRef.current)} /> )}