fix: edge case where executions could be null

This commit is contained in:
peaklabs-dev committed 2025-01-07 14:49:04 +01:00
1 parent 5064fa246e
commit 96d2a1a512
1 file changed
+4 -2
@@ -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 = [];
}
}