Skip to content

Commit

Permalink
Fix "The node already has a parent." exception when setting JsonNode …
Browse files Browse the repository at this point in the history
…in Workflows ForEach Task (#16882)

---------

Co-authored-by: Georg von Kries <[email protected]>
Co-authored-by: Mike Alhayek <[email protected]>
  • Loading branch information
3 people authored Nov 21, 2024
1 parent b9483eb commit 1051dbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,6 @@ protected virtual T GetProperty<T>(Type type, Func<T> defaultValue = null, [Call
protected virtual void SetProperty(object value, [CallerMemberName] string name = null)
{
// Properties[name] = JToken.FromObject(value);
Properties[name] = JNode.FromObject(value);
Properties[name] = value is JsonNode node ? node.DeepClone() : JNode.FromObject(value);
}
}

0 comments on commit 1051dbe

Please sign in to comment.