From f85615fb8fccc82a048adaba2cff72e51c5929ef Mon Sep 17 00:00:00 2001 From: Mohamed Ali Date: Sat, 17 Feb 2024 11:20:07 +0300 Subject: [PATCH] Set the default value for Interval to match DefaultValue (should fix #4818) (#4926) --- src/modules/Elsa.Scheduling/Activities/Timer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.Scheduling/Activities/Timer.cs b/src/modules/Elsa.Scheduling/Activities/Timer.cs index 11b7dd0c0..94e1409ec 100644 --- a/src/modules/Elsa.Scheduling/Activities/Timer.cs +++ b/src/modules/Elsa.Scheduling/Activities/Timer.cs @@ -34,7 +34,7 @@ public class Timer : EventGenerator /// The interval at which the timer should execute. /// [Input(Description = "The interval at which the timer should execute.", DefaultValue = "00:01:00")] - public Input Interval { get; set; } = default!; + public Input Interval { get; set; } = new(TimeSpan.FromMinutes(1)); /// protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)