diff --git a/package.json b/package.json index d2bf2dd..3deb55c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Xtory", - "version": "0.2.2", + "version": "0.2.3", "description": "A tool for writing branching nonlinear stories. ", "author": "Ali Rezvani ", "repository": { diff --git a/release/app/package.json b/release/app/package.json index 4d84696..70c8634 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "Xtory", - "version": "0.2.2", + "version": "0.2.3", "description": "A tool for writing branching nonlinear stories. ", "license": "GPT-3", "author": { diff --git a/src/renderer/components/Tab/TabViews/FlowView.tsx b/src/renderer/components/Tab/TabViews/FlowView.tsx index 2c2bc77..09371f9 100644 --- a/src/renderer/components/Tab/TabViews/FlowView.tsx +++ b/src/renderer/components/Tab/TabViews/FlowView.tsx @@ -185,6 +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; + }); setNodes(flow.nodes || []); setEdges(flow.edges || []); setViewport({ x, y, zoom });