Skip to content

Commit

Permalink
fix(fe): fix selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Mar 1, 2024
1 parent f44c7a5 commit 123a8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools-fe/src/pages/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const TimelinePage: FC = () => {

const selected = useMemo(() => {
const [key] = Object.keys(rowSelection)
if (key) return data[Number(key)]
if (key) return data.find((x) => x.index === Number(key))
return undefined
}, [rowSelection, data])

Expand Down

0 comments on commit 123a8a5

Please sign in to comment.