Merge pull request #4767 from peaklabs-dev/fix-backup-executions
fix: edge case where backup executions could be null
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user