mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
Fix: Variables null
This commit is contained in:
@@ -114,9 +114,11 @@ export class TypebotService {
|
||||
instanceName: instance.instanceName,
|
||||
};
|
||||
|
||||
variables.forEach((variable) => {
|
||||
prefilledVariables[variable.name] = variable.value;
|
||||
});
|
||||
if (variables?.length) {
|
||||
variables.forEach((variable: { name: string | number; value: string }) => {
|
||||
prefilledVariables[variable.name] = variable.value;
|
||||
});
|
||||
}
|
||||
|
||||
if (startSession) {
|
||||
const response = await this.createNewSession(instance, {
|
||||
|
||||
Reference in New Issue
Block a user