Fix WorkflowDefinitionId liquid filter
The name argument should be optional.
This commit is contained in:
parent
b385dfcdad
commit
19619b8307
|
|
@ -17,7 +17,7 @@ namespace Elsa.Scripting.Liquid.Filters
|
|||
|
||||
public async ValueTask<FluidValue> ProcessAsync(FluidValue input, FilterArguments arguments, TemplateContext context)
|
||||
{
|
||||
var queryType = arguments.Values.FirstOrDefault()?.ToStringValue() ?? "name";
|
||||
var queryType = arguments.Values?.FirstOrDefault()?.ToStringValue() ?? "name";
|
||||
var queryValue = input.ToStringValue().ToLowerInvariant();
|
||||
|
||||
Func<IWorkflowBlueprint, bool> predicate = queryType switch
|
||||
|
|
|
|||
Loading…
Reference in a new issue