We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d087b15 commit 66885b4Copy full SHA for 66885b4
src/Domain/HydraScript.Domain.BackEnd/Impl/Instructions/WithAssignment/AsString.cs
@@ -18,9 +18,12 @@ public partial class AsString(IValue value) : Simple(value)
18
public override IAddress? Execute(IExecuteParams executeParams)
19
{
20
var frame = executeParams.Frames.Peek();
21
- frame[Left!] = JsonSerializer.Serialize(
22
- value: Right.right!.Get(frame)!,
23
- AsStringJsonContext.Object);
+ var value = Right.right!.Get(frame);
+ frame[Left!] = value is string
+ ? value
24
+ : JsonSerializer.Serialize(
25
+ value: Right.right!.Get(frame)!,
26
+ AsStringJsonContext.Object);
27
28
return Address.Next;
29
}
0 commit comments