decision tree nits
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user