mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-16 21:10:26 +08:00
🐛 (webhook) Fix legacy webhook {{state}} body parsing
This commit is contained in:
parent
bac2393b5d
commit
63233eb7ee
@ -239,7 +239,7 @@ const getBodyContent =
|
||||
variables: Variable[]
|
||||
isCustomBody?: boolean
|
||||
}): Promise<string | undefined> => {
|
||||
return isEmpty(body) && isCustomBody !== true
|
||||
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
|
||||
? JSON.stringify(
|
||||
resultValues
|
||||
? parseAnswers({
|
||||
|
||||
@ -223,7 +223,7 @@ const getBodyContent = async ({
|
||||
variables: Variable[]
|
||||
isCustomBody?: boolean
|
||||
}): Promise<string | undefined> => {
|
||||
return isEmpty(body) && isCustomBody !== true
|
||||
return body === '{{state}}' || isEmpty(body) || isCustomBody !== true
|
||||
? JSON.stringify(
|
||||
parseAnswers({
|
||||
answers,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user