mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
fix(service): prevent public toggle from saving entire database form
The instantSave method for the 'Make it publicly available' checkbox was calling submitDatabase(), which saved all form fields. This caused unintended saves when only toggling the public visibility. The syncDatabaseData() call already handles saving the public toggle state.
This commit is contained in:
@@ -298,7 +298,6 @@ class Index extends Component
|
||||
$this->db_url_public = null;
|
||||
$this->dispatch('success', 'Database is no longer publicly accessible.');
|
||||
}
|
||||
$this->submitDatabase();
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user