feat(frontend): fix No branch for branch one

This commit is contained in:
Faton Ramadani
2024-08-13 15:04:47 +02:00
parent 6c62a60a4b
commit fd6b1af532
2 changed files with 3 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ export default function graphBuilder(
...extra
},
position: { x: -1, y: -1 },
type: 'branchOneStart'
type: 'noBranch'
}
nodes.push(defaultBranch)

View File

@@ -13,12 +13,13 @@
eventHandlers: GraphEventHandlers
flowModuleStates: Record<string, GraphModuleState> | undefined
offset: number
label: string | undefined
}
</script>
<NodeWrapper offset={data.offset} let:darkMode enableSourceHandle enableTargetHandle>
<VirtualItem
label={'No branches'}
label={data.label ?? 'No branches'}
modules={data.modules}
id={data.id}
hideId={true}