Skip to content

Commit 54958cf

Browse files
committed
Adding more handles to nodes, workspace_id missing from activeFlow bug
1 parent 9d079e9 commit 54958cf

File tree

8 files changed

+19
-1
lines changed

8 files changed

+19
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dist-ssr
1717
dist/*.exe
1818
build/*
1919
*.db
20+
settings.p
2021

2122
# Editor directories and files
2223
!.vscode/extensions.json

src/custom/card.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ function CardNode({ data, selected }: { data: any, selected: any }) {
2323
<Handle type="source" position={Position.Bottom} id="b" />
2424
<Handle type="source" position={Position.Top} id="c" />
2525
<Handle type="target" position={Position.Bottom} id="d" />
26+
<Handle type="target" position={Position.Left} id="e" />
27+
<Handle type="source" position={Position.Right} id="f" />
28+
<Handle type="source" position={Position.Left} id="g" />
29+
<Handle type="target" position={Position.Right} id="h" />
2630
</div>
2731
</>
2832
);

src/custom/default.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ function Default({ data, selected }: { data: any, selected: any }) {
1818
<Handle type="source" position={Position.Bottom} id="b" />
1919
<Handle type="source" position={Position.Top} id="c" />
2020
<Handle type="target" position={Position.Bottom} id="d" />
21+
<Handle type="target" position={Position.Left} id="e" />
22+
<Handle type="source" position={Position.Right} id="f" />
23+
<Handle type="source" position={Position.Left} id="g" />
24+
<Handle type="target" position={Position.Right} id="h" />
2125
</div>
2226
</>
2327
);

src/custom/input.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function Input({ data, selected }: { data: any, selected: any }) {
1616
{data.label}
1717
<Handle type="source" position={Position.Bottom} id="a" />
1818
<Handle type="target" position={Position.Bottom} id="b" />
19+
<Handle type="source" position={Position.Top} id="c" />
20+
<Handle type="target" position={Position.Top} id="d" />
1921
</div>
2022
</>
2123
);

src/custom/output.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function Output({ data, selected }: { data: any, selected: any }) {
1616
{data.label}
1717
<Handle type="target" position={Position.Top} id="a" />
1818
<Handle type="source" position={Position.Top} id="b" />
19+
<Handle type="target" position={Position.Bottom} id="c" />
20+
<Handle type="source" position={Position.Bottom} id="d" />
1921
</div>
2022
</>
2123
);

src/custom/subflow.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ function SubFlowNode({ data, selected }: { data: any, selected: any }) {
4141
<Handle type="source" position={Position.Bottom} id="b" />
4242
<Handle type="source" position={Position.Top} id="c" />
4343
<Handle type="target" position={Position.Bottom} id="d" />
44+
<Handle type="target" position={Position.Left} id="e" />
45+
<Handle type="source" position={Position.Right} id="f" />
46+
<Handle type="source" position={Position.Left} id="g" />
47+
<Handle type="target" position={Position.Right} id="h" />
4448
</div>
4549
</>
4650
);

src/designer/designer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export default function Designer({ activeWorkspace, setActiveWorkspace, flow }:
238238
}
239239

240240
// Set the viewport
241-
if (f.position !== null || f.position !== undefined) {
241+
if (f.position !== null && f.position !== undefined) {
242242
setViewport(f.position);
243243
}
244244
})

src/home/home.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export default function Home({setActiveWorkspace, flow}: {setActiveWorkspace: an
3434
id
3535
name
3636
slug
37+
workspace_id
3738
description
3839
created_at
3940
updated_at

0 commit comments

Comments
 (0)