From eef8c756df8140bbfc96fc8ad777f70ba0a40fc6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 9 Jan 2024 14:27:42 +0100 Subject: [PATCH] fix: settings menu --- app/Livewire/Settings/Index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Settings/Index.php b/app/Livewire/Settings/Index.php index 44c653b74..0c1dd50e9 100644 --- a/app/Livewire/Settings/Index.php +++ b/app/Livewire/Settings/Index.php @@ -17,16 +17,16 @@ class Index extends Component if (isInstanceAdmin()) { $settings = InstanceSettings::get(); $database = StandalonePostgresql::whereName('coolify-db')->first(); + $s3s = S3Storage::whereTeamId(0)->get() ?? []; if ($database) { if ($database->status !== 'running') { $database->status = 'running'; $database->save(); } - $s3s = S3Storage::whereTeamId(0)->get(); + $this->database = $database; } $this->settings = $settings; - $this->database = $database; - $this->s3s = $s3s ?? []; + $this->s3s = $s3s; } else { return redirect()->route('dashboard'); }