Merge pull request #163 from w3nder/develop

Fix: Variables null
This commit is contained in:
Davidson Gomes 2023-10-05 15:59:39 -03:00 committed by GitHub
commit 1f29b7733e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,9 +114,11 @@ export class TypebotService {
instanceName: instance.instanceName, instanceName: instance.instanceName,
}; };
variables.forEach((variable) => { if (variables?.length) {
prefilledVariables[variable.name] = variable.value; variables.forEach((variable: { name: string | number; value: string }) => {
}); prefilledVariables[variable.name] = variable.value;
});
}
if (startSession) { if (startSession) {
const response = await this.createNewSession(instance, { const response = await this.createNewSession(instance, {