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
commit 0905479c8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -83,8 +83,10 @@ public function download_file($exeuctionId)
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 = [];
}
}