2
0

💄 Fix audio element UI overflow on Firefox

Also added better display when a media bubble src is a variable

Closes #1742
This commit is contained in:
Baptiste Arnaud
2024-09-02 11:47:02 +02:00
parent 041b817aa0
commit d51cf00f69
8 changed files with 60 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ import Mail from 'nodemailer/lib/mailer'
import { byId, isDefined, isEmpty, isNotDefined, omit } from '@typebot.io/lib'
import { decrypt } from '@typebot.io/lib/api/encryption/decrypt'
import { defaultFrom, defaultTransportOptions } from './constants'
import { findUniqueVariableValue } from '@typebot.io/variables/findUniqueVariableValue'
import { findUniqueVariable } from '@typebot.io/variables/findUniqueVariableValue'
import { env } from '@typebot.io/env'
import { ExecuteIntegrationResponse } from '../../../types'
import prisma from '@typebot.io/lib/prisma'
@@ -43,9 +43,9 @@ export const executeSendEmailBlock = async (
],
}
const bodyUniqueVariable = findUniqueVariableValue(typebot.variables)(
const bodyUniqueVariable = findUniqueVariable(typebot.variables)(
options?.body
)
)?.value
const body = bodyUniqueVariable
? stringifyUniqueVariableValueAsHtml(bodyUniqueVariable)
: parseVariables(typebot.variables, { isInsideHtml: !options?.isBodyCode })(