From 96d2a1a512c4f9ea298db4876be24ace250f0f17 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Tue, 7 Jan 2025 14:49:04 +0100 Subject: [PATCH] fix: edge case where executions could be null --- app/Livewire/Project/Database/BackupExecutions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php index f91b8bfaf..ce168a352 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 = []; } }