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: settings menu

Andras Bacsaieef8c756df81
diff --git a/app/Livewire/Settings/Index.php b/app/Livewire/Settings/Index.php
index 44c653b741..0c1dd50e9e 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');
}