2
0

🐛 (transcript) Fix variable ids for history detection

This commit is contained in:
Baptiste Arnaud
2024-06-26 11:52:22 +02:00
parent 3b405dc7d5
commit dd191e3525
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ import {
} from '@typebot.io/schemas/features/blocks/logic/setVariable/constants'
import { createCodeRunner } from '@typebot.io/variables/codeRunners'
import { stringifyError } from '@typebot.io/lib/stringifyError'
import { AnswerV2 } from '@typebot.io/prisma'
export const executeSetVariable = async (
state: SessionState,

View File

@ -127,7 +127,7 @@ export const getVariablesToParseInfoInText = (
if (isNotDefined(match.index) || !match[0].length) return
const matchedVarName = match[1] ?? match[3]
const variable = variables.find((variable) => {
return matchedVarName === variable.name && isDefined(variable.value)
return matchedVarName === variable.name
}) as VariableWithValue | undefined
variablesToParseInfo.push({
startIndex: match.index,