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
No known key found for this signature in database

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