🐛 Update generateVariable extraction to use nullish instead of optional to not throw on null values

This commit is contained in:
Baptiste Arnaud 2024-11-06 08:34:07 -06:00
parent 954151e422
commit 345bfac519
No known key found for this signature in database

View File

@ -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(