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:
parent
a4cef981fe
commit
63380d27c7
1 changed files with 0 additions and 1 deletions
|
|
@ -298,7 +298,6 @@ public function instantSave()
|
|||
$this->db_url_public = null;
|
||||
$this->dispatch('success', 'Database is no longer publicly accessible.');
|
||||
}
|
||||
$this->submitDatabase();
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue