fix
This commit is contained in:
parent
3369306451
commit
04b1c2bfc7
1 changed files with 3 additions and 3 deletions
|
@ -71,14 +71,14 @@ export class BehaviorTreeBuilderModel {
|
|||
};
|
||||
public static getNodeLabelAtId(editor: NodeEditor<Schemes>, id: string, skills?: Skills) {
|
||||
try {
|
||||
console.log(editor.getNode(id)!.label)
|
||||
console.log(editor.getNode(id)!.label);
|
||||
if (skills?.getSkillsNames().find((el) => el.name.isEqual(editor.getNode(id)!.label))) {
|
||||
return `${skills.skillIsCondition(editor.getNode(id)!.label).fold(
|
||||
() => "Condition",
|
||||
() => "Action"
|
||||
)} ID=${skills.skillIsCondition(editor.getNode(id)!.label).fold(
|
||||
() => "RbsAction",
|
||||
() => "Is"
|
||||
() => "Is",
|
||||
() => "RbsAction"
|
||||
)} do="${skills.getSkillDo(editor.getNode(id)!.label)}" command="${editor.getNode(id)?.label}" sid=${id}"`;
|
||||
}
|
||||
return editor.getNode(id)?.label;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue