fix: edge case where executions could be null

This commit is contained in:
peaklabs-dev
2025-01-07 14:49:04 +01:00
parent 5064fa246e
commit 96d2a1a512

View File

@@ -83,8 +83,10 @@ class BackupExecutions extends Component
public function refreshBackupExecutions(): void public function refreshBackupExecutions(): void
{ {
if ($this->backup) { if ($this->backup && $this->backup->exists) {
$this->executions = $this->backup->executions()->get(); $this->executions = $this->backup->executions()->get()->toArray();
} else {
$this->executions = [];
} }
} }