diff --git a/src/modules/Elsa.Workflows.Core/Memory/Variable.cs b/src/modules/Elsa.Workflows.Core/Memory/Variable.cs index 47a33dd29..ea2bef21d 100644 --- a/src/modules/Elsa.Workflows.Core/Memory/Variable.cs +++ b/src/modules/Elsa.Workflows.Core/Memory/Variable.cs @@ -30,7 +30,10 @@ public class Variable : MemoryBlockReference public Variable(string name, object? value = null, string? id = null) : this(name, value) { - Value = value; + if (id != null) + { + Id = id; + } } ///