Remove explicit type checking and render to string always
This commit is contained in:
parent
10d77b7365
commit
57c8fc6bcd
|
|
@ -17,9 +17,6 @@ namespace Elsa.Scripting.Liquid.Filters
|
|||
|
||||
public async ValueTask<FluidValue> ProcessAsync(FluidValue input, FilterArguments arguments, TemplateContext context)
|
||||
{
|
||||
if (input.Type != FluidValues.String)
|
||||
throw new NotSupportedException("Unrecognized FluidValue");
|
||||
|
||||
var queryType = arguments.Values.FirstOrDefault()?.ToStringValue() ?? "name";
|
||||
var queryValue = input.ToStringValue().ToLowerInvariant();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue