Skip to content

Commit

Permalink
Fixed linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Oct 7, 2023
1 parent f10f43a commit 672becb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/components/Tab/TabViews/FlowView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ 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));
flow.nodes?.forEach((node: any) => {
node.data.focusOnInit = false;
});
setNodes(flow.nodes || []);
setEdges(flow.edges || []);
setViewport({ x, y, zoom });
Expand Down

0 comments on commit 672becb

Please sign in to comment.