From 55a9c752ebeb3cca48ab0d6479eaf99ecff7892f Mon Sep 17 00:00:00 2001 From: Green7 Date: Thu, 20 Mar 2025 12:11:39 +0100 Subject: [PATCH] Fix incorrect Id assignment in Variable constructor (#6514) --- src/modules/Elsa.Workflows.Core/Memory/Variable.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; + } } ///