fix: remove quebra de linha no index final do array quando usado variavel no Typebot

This commit is contained in:
edisoncm-ti 2024-01-20 11:09:05 -03:00
parent 69a323691f
commit 96be63f50b

View File

@ -412,7 +412,7 @@ export class TypebotService {
text += element.text;
}
if (element.type === 'p' || element.type === 'inline-variable' || element.type === 'a') {
if (element.children && (element.type === 'p' || element.type === 'a' || element.type === 'inline-variable' || element.type === 'variable')) {
for (const child of element.children) {
text += applyFormatting(child);
}