diff --git a/src/designer/designer_packages/elsa-workflows-designer/src/components/inputs/check-list.tsx b/src/designer/designer_packages/elsa-workflows-designer/src/components/inputs/check-list.tsx index c98bccd1f..f0f864de6 100644 --- a/src/designer/designer_packages/elsa-workflows-designer/src/components/inputs/check-list.tsx +++ b/src/designer/designer_packages/elsa-workflows-designer/src/components/inputs/check-list.tsx @@ -39,6 +39,7 @@ export class CheckList { const value = (input?.expression as ObjectExpression)?.value; // TODO: The "value" field is currently hardcoded, but we should be able to be more flexible and potentially have different fields for a given syntax. const syntax = input?.expression?.type ?? inputDescriptor.defaultSyntax; const selectList = this.selectList; + const selectListItems = selectList.items return ( diff --git a/src/modules/Elsa.Workflows.Core/Services/PropertyOptionsResolver.cs b/src/modules/Elsa.Workflows.Core/Services/PropertyOptionsResolver.cs index 79129168d..4971faf34 100644 --- a/src/modules/Elsa.Workflows.Core/Services/PropertyOptionsResolver.cs +++ b/src/modules/Elsa.Workflows.Core/Services/PropertyOptionsResolver.cs @@ -50,7 +50,7 @@ public class PropertyOptionsResolver : IPropertyOptionsResolver } var defaultOptions = inputAttribute?.Options ?? (TryGetEnumOptions(propertyInfo, out var items) ? items : null); - return defaultOptions != null ? new Dictionary { ["Default"] = defaultOptions } : null; + return defaultOptions != null ? new Dictionary { ["items"] = defaultOptions } : null; } private bool TryGetEnumOptions(PropertyInfo activityPropertyInfo, out IList? items)