diff --git a/app/Livewire/Project/Database/BackupExecutions.php b/app/Livewire/Project/Database/BackupExecutions.php index a34d849f2..101bb4593 100644 --- a/app/Livewire/Project/Database/BackupExecutions.php +++ b/app/Livewire/Project/Database/BackupExecutions.php @@ -20,7 +20,7 @@ public function getListeners() public function cleanupFailed() { - $this->backup->executions()->where('status', 'failed')->delete(); + $this->backup?->executions()->where('status', 'failed')->delete(); $this->refreshBackupExecutions(); } public function deleteBackup($exeuctionId)