fix: TypeError when adding a new scheduled task
This commit is contained in:
parent
7ca584877a
commit
8dc35e2b5f
1 changed files with 2 additions and 2 deletions
|
|
@ -102,7 +102,7 @@ public function submit()
|
|||
}
|
||||
}
|
||||
|
||||
private function saveScheduledTask(): mixed
|
||||
private function saveScheduledTask(): void
|
||||
{
|
||||
try {
|
||||
$task = new ScheduledTask;
|
||||
|
|
@ -128,7 +128,7 @@ private function saveScheduledTask(): mixed
|
|||
$this->dispatch('refreshTasks');
|
||||
$this->dispatch('success', 'Scheduled task added.');
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
handleError($e, $this);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue