Fix WorkflowDefinitionId liquid filter

The name argument should be optional.
This commit is contained in:
Sipke Schoorstra 2021-08-05 14:27:44 +02:00
parent b385dfcdad
commit 19619b8307

View file

@ -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