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: edge case where executions could be null

peaklabs-dev96d2a1a512c4
diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php
index f91b8bfaf3..ce168a3523 100644
--- a/app/Livewire/Project/Database/BackupExecutions.php
+++ b/app/Livewire/Project/Database/BackupExecutions.php
@@ -83,8 +83,10 @@ class BackupExecutions extends Component
public function refreshBackupExecutions(): void
{
- if ($this->backup) {
- $this->executions = $this->backup->executions()->get();
+ if ($this->backup && $this->backup->exists) {
+ $this->executions = $this->backup->executions()->get()->toArray();
+ } else {
+ $this->executions = [];
}
}