We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c6d06 commit 6fb88edCopy full SHA for 6fb88ed
app/Livewire/SettingsBackup.php
@@ -54,8 +54,15 @@ public function mount()
54
}
55
$this->settings = $settings;
56
$this->s3s = $s3s;
57
- $this->backup = $this->database?->scheduledBackups?->first() ?? null;
58
- $this->executions = $this->backup?->executions ?? [];
+
+ $scheduledBackups = data_get($this->database, 'scheduledBackups');
59
+ if ($scheduledBackups) {
60
+ $this->backup = $scheduledBackups->first();
61
+ }
62
+ $executions = data_get($this->backup, 'executions');
63
+ if ($executions) {
64
+ $this->executions = $executions;
65
66
} else {
67
return redirect()->route('dashboard');
68
0 commit comments