mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🐛 Update generateVariable extraction to use nullish instead of optional to not throw on null values
This commit is contained in:
parent
954151e422
commit
345bfac519
@ -89,7 +89,7 @@ const convertVariablesToExtractToSchema = ({
|
||||
}
|
||||
}
|
||||
if (variableToExtract.isRequired === false)
|
||||
shape[matchingVariable.name] = shape[matchingVariable.name]!.optional();
|
||||
shape[matchingVariable.name] = shape[matchingVariable.name]!.nullish();
|
||||
|
||||
if (isNotEmpty(variableToExtract.description))
|
||||
shape[matchingVariable.name] = shape[matchingVariable.name]!.describe(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user