🐛 (viewer) Save new variables even if empty list
This commit is contained in:
@ -91,7 +91,6 @@ export const TypebotPage = ({
|
|||||||
}, [resultId])
|
}, [resultId])
|
||||||
|
|
||||||
const handleNewVariables = async (variables: VariableWithValue[]) => {
|
const handleNewVariables = async (variables: VariableWithValue[]) => {
|
||||||
if (variables.length === 0) return
|
|
||||||
if (!resultId)
|
if (!resultId)
|
||||||
return setVariableUpdateQueue([...variableUpdateQueue, variables])
|
return setVariableUpdateQueue([...variableUpdateQueue, variables])
|
||||||
await sendNewVariables(resultId)(variables)
|
await sendNewVariables(resultId)(variables)
|
||||||
|
Reference in New Issue
Block a user