fix: TypeError when adding a new scheduled task

This commit is contained in:
peaklabs-dev 2026-09-04 15:27:24 +02:00
parent 7ca584877a
commit 8dc35e2b5f
No known key found for this signature in database

View file

@ -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);
}
}