Skip to content

Commit

Permalink
fix: type ahead blocks are not working when activated with Vlocode
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Apr 24, 2023
1 parent c47952a commit f775f6d
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ export class OmniScriptDefinitionBuilder implements Iterable<OmniScriptElementDe

this.addElementHandlers[ele.type]?.(id, ele, options);
}

private addInputBlock(id: string, ele: OmniScriptElementDefinition) {
ele.JSONPath = this.getJsonPath(ele);
}
Expand Down Expand Up @@ -337,12 +336,16 @@ class OmniScriptElementGroupDefinitionBuilder {
child.response = null;
child.children = [];

this.group.children.push({
bHasAttachment: child.bHasAttachment,
eleArray: [ child ],
indexInParent: childIndex,
level: this.group.level + 1,
response: child.response
});
if (this.group.type === 'Type Ahead Block' && this.group.children.length) {
this.group.children[0].eleArray[0].propSetMap!.taAction = child;
} else {
this.group.children.push({
bHasAttachment: child.bHasAttachment,
eleArray: [ child ],
indexInParent: childIndex,
level: this.group.level + 1,
response: child.response
});
}
}
}

0 comments on commit f775f6d

Please sign in to comment.