🐛 (webhook) Fix legacy webhook {{state}} body parsing
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user