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: sentry

Andras Bacsai0a0bb0ca1319
diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php
index 18ec9cd96e..5e9319cfde 100644
--- a/app/Livewire/Project/Database/BackupExecutions.php
+++ b/app/Livewire/Project/Database/BackupExecutions.php
@@ -22,7 +22,7 @@ class BackupExecutions extends Component
public function cleanupFailed()
{
if ($this->backup) {
- $this->backup?->executions()->where('status', 'failed')->delete();
+ $this->backup->executions()->where('status', 'failed')->delete();
$this->refreshBackupExecutions();
$this->dispatch('success', 'Failed backups cleaned up.');
}
@@ -49,6 +49,8 @@ class BackupExecutions extends Component
}
public function refreshBackupExecutions(): void
{
- $this->executions = $this->backup?->executions()->get()->sortByDesc('created_at');
+ if ($this->backup) {
+ $this->executions = $this->backup->executions()->get()->sortByDesc('created_at');
+ }
}
}