diff --git a/app/Livewire/Project/Shared/ScheduledTask/Show.php b/app/Livewire/Project/Shared/ScheduledTask/Show.php index 947eeb5af..171ba3bb2 100644 --- a/app/Livewire/Project/Shared/ScheduledTask/Show.php +++ b/app/Livewire/Project/Shared/ScheduledTask/Show.php @@ -79,6 +79,7 @@ class Show extends Component $this->validate(); $isValid = validate_cron_expression($this->frequency); if (! $isValid) { + $this->frequency = $this->task->frequency; throw new \Exception('Invalid Cron / Human expression.'); } $this->task->enabled = $this->isEnabled;