Skip to content

Commit

Permalink
Merge pull request #39 from rzvxa:rzvxa/issue38
Browse files Browse the repository at this point in the history
We no longer focus on nodes after loading the graph
  • Loading branch information
rzvxa authored Oct 7, 2023
2 parents 2bcce9e + ffa7f7e commit 8a06c6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/Tab/TabViews/FlowView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ function Flow({ tabId, setTabIsDirty }: FlowProps) {

if (flow) {
const { x = 0, y = 0, zoom = 1 } = flow.viewport;
flow.nodes?.forEach((node: any) => (node.data.focusOnInit = false));

Check failure on line 188 in src/renderer/components/Tab/TabViews/FlowView.tsx

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

Arrow function should not return assignment
setNodes(flow.nodes || []);
setEdges(flow.edges || []);
setViewport({ x, y, zoom });
Expand Down

0 comments on commit 8a06c6d

Please sign in to comment.