Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix clear frequency on exit and error

peaklabs-dev4cc4e28f297c
diff --git a/app/Livewire/Project/Database/CreateScheduledBackup.php b/app/Livewire/Project/Database/CreateScheduledBackup.php
index 272026797e..01108c2900 100644
--- a/app/Livewire/Project/Database/CreateScheduledBackup.php
+++ b/app/Livewire/Project/Database/CreateScheduledBackup.php
@@ -75,10 +75,10 @@ class CreateScheduledBackup extends Component
$this->dispatch('refreshScheduledBackups');
}
- $this->frequency = '';
-
} catch (\Throwable $e) {
return handleError($e, $this);
+ } finally {
+ $this->frequency = '';
}
}
}