Skip to content

Commit 13e58da

Browse files
authored
Merge pull request #30 from oslabs-beta/JA/Remove-unused-handles
Removed unused handles from the root node and from leaf nodes
2 parents 031522d + 5ce9547 commit 13e58da

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/webview/flowBuilder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FlowBuilder {
3232
nodes.push({
3333
id: node.data.id,
3434
position: { x: node.x ? node.x : 0, y: node.y ? node.y : 0 },
35-
type: 'default',
35+
type: node.depth === 0 ? 'input' : !node.children ? 'output' : 'default',
3636
data: { label: node.data.name },
3737
style: {
3838
borderRadius: '6px',

0 commit comments

Comments
 (0)