Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: scheduledbackup not found

Andras Bacsai6fb88ed47962
diff --git a/app/Livewire/SettingsBackup.php b/app/Livewire/SettingsBackup.php
index da3aee4918..73e1066883 100644
--- a/app/Livewire/SettingsBackup.php
+++ b/app/Livewire/SettingsBackup.php
@@ -54,8 +54,15 @@ class SettingsBackup extends Component
}
$this->settings = $settings;
$this->s3s = $s3s;
- $this->backup = $this->database?->scheduledBackups?->first() ?? null;
- $this->executions = $this->backup?->executions ?? [];
+
+ $scheduledBackups = data_get($this->database, 'scheduledBackups');
+ if ($scheduledBackups) {
+ $this->backup = $scheduledBackups->first();
+ }
+ $executions = data_get($this->backup, 'executions');
+ if ($executions) {
+ $this->executions = $executions;
+ }
} else {
return redirect()->route('dashboard');
}