diff --git a/src/Visualizer/components/TableNode.tsx b/src/Visualizer/components/TableNode.tsx index 6e59f6f..d5ece02 100644 --- a/src/Visualizer/components/TableNode.tsx +++ b/src/Visualizer/components/TableNode.tsx @@ -68,7 +68,7 @@ export const TableNode: FC = ({ data }) => { onMouseLeave={() => setSelectedColumn("")} onClick={() => { window.requestAnimationFrame(() => { - reactFlow.fitView(); + reactFlow.fitView({ nodes: [{ id: 'Generic.Booking' }]}); }) }} >