Skip to content

Commit

Permalink
Merge pull request #4767 from peaklabs-dev/fix-backup-executions
Browse files Browse the repository at this point in the history
fix: edge case where backup executions could be null
  • Loading branch information
peaklabs-dev authored Jan 10, 2025
2 parents d36a179 + 96d2a1a commit 0905479
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Livewire/Project/Database/BackupExecutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
}

Expand Down

0 comments on commit 0905479

Please sign in to comment.