fix: edge case where executions could be null
This commit is contained in:
parent
5064fa246e
commit
96d2a1a512
1 changed files with 4 additions and 2 deletions
|
|
@ -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 = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue