mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
Fix: Variables null
This commit is contained in:
parent
6ff9c4578a
commit
6a3f82ed7e
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user