⚡ Typeform Trigger translates double curly brackets square brackets (#1316)
This commit is contained in:
@@ -217,7 +217,7 @@ export class TypeformTrigger implements INodeType {
|
|||||||
// Create a dictionary to get the field title by its ID
|
// Create a dictionary to get the field title by its ID
|
||||||
const defintitionsById: { [key: string]: string; } = {};
|
const defintitionsById: { [key: string]: string; } = {};
|
||||||
for (const field of definition.fields) {
|
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
|
// Convert the answers to key -> value pair
|
||||||
|
|||||||
Reference in New Issue
Block a user