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:
Andras Bacsai 2026-01-02 16:59:02 +01:00
parent a4cef981fe
commit 63380d27c7

View file

@ -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);
}