decision tree nits

This commit is contained in:
Ruben Fiszel
2025-07-23 13:45:41 +00:00
parent 46d6f68ec1
commit b3ad7834b2
2 changed files with 3 additions and 6 deletions

View File

@@ -122,8 +122,8 @@
<InputsSpecEditor
key={`condition-${selectedNode.id}-${index}`}
customTitle={index === 0
? 'Goes to the default branch'
: `${index > 0 ? 'Otherwise ' : ''}Goes to branch ${index}`}
? 'Goes to branch 1'
: `${index > 0 ? 'Otherwise g' : 'G'}oes to branch ${index + 1}`}
bind:componentInput={subNode.condition}
id={selectedNode.id}
userInputEnabled={false}

View File

@@ -224,10 +224,7 @@
position: { x: -1, y: -1 },
data: {
node: {
label:
positionRelativeToParent === 0
? 'Default branch'
: `Branch ${positionRelativeToParent}`,
label: `Branch ${(positionRelativeToParent ?? 0) + 1}`,
id: branchHeaderId,
allowed: undefined,
next: [],