Typeform Trigger translates double curly brackets square brackets (#1316)

This commit is contained in:
Omar Ajoue 2021-01-14 17:32:20 +01:00 committed by GitHub
parent 5a8ef557ad
commit e5bbf7144f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ export class TypeformTrigger implements INodeType {
// Create a dictionary to get the field title by its ID
const defintitionsById: { [key: string]: string; } = {};
for (const field of definition.fields) {
defintitionsById[field.id] = field.title;
defintitionsById[field.id] = field.title.replace(/\{\{/g, "[").replace(/\}\}/g, "]");
}
// Convert the answers to key -> value pair