Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/rzvxa/xtory into jav…
Browse files Browse the repository at this point in the history
…ascript-plugin
  • Loading branch information
rzvxa committed Oct 7, 2023
2 parents 1d1ed17 + 672becb commit ec613dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion release/app/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/components/Tab/TabViews/FlowView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit ec613dd

Please sign in to comment.