Skip to content

Commit d62c495

Browse files
committed
Change default value retrieval to use ToString method
The change was made in the DefaultExpressionDescriptorProvider.cs under Elsa.Workflows.Management. Instead of relying on the GetString method, the updated code now uses the ToString method for default value retrieval. This change improves how we process and retrieve default values in unspecified cases.
1 parent 3bad8a5 commit d62c495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/Elsa.Workflows.Management/Providers/DefaultExpressionDescriptorProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private ExpressionDescriptor CreateLiteralDescriptor()
3939
JsonValueKind.Number => elementValue.GetDecimal(),
4040
JsonValueKind.True => true,
4141
JsonValueKind.False => false,
42-
_ => v.GetString()
42+
_ => v.ToString()
4343
});
4444

4545
return new Expression("Literal", value);

0 commit comments

Comments
 (0)