Merge pull request #4767 from peaklabs-dev/fix-backup-executions

fix: edge case where backup executions could be null
This commit is contained in:
🏔️ Peak
2025-01-10 20:57:27 +01:00
committed by GitHub

View File

@@ -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 = [];
}
}