Skip to content

Commit

Permalink
Change default value retrieval to use ToString method
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sfmskywalker committed Feb 12, 2024
1 parent 3bad8a5 commit d62c495
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private ExpressionDescriptor CreateLiteralDescriptor()
JsonValueKind.Number => elementValue.GetDecimal(),
JsonValueKind.True => true,
JsonValueKind.False => false,
_ => v.GetString()
_ => v.ToString()
});
return new Expression("Literal", value);
Expand Down

0 comments on commit d62c495

Please sign in to comment.