Skip to content

Commit

Permalink
Missplaced grid at graph load
Browse files Browse the repository at this point in the history
Fixes #38
  • Loading branch information
rzvxa committed Oct 7, 2023
1 parent 2bcce9e commit ffa7f7e
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

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 ffa7f7e

Please sign in to comment.