Persist style when saving banner settings

cgen-4d173f8386334c82b35bad482c40addd
This commit is contained in:
Builder.io 2025-10-19 21:12:18 +00:00
parent 5dffbdcd0b
commit 9eb572e038

View file

@ -27,7 +27,7 @@ export default function BannerSettings() {
const resp = await fetch("/api/site-settings", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ key: "home_banner", value: { text, enabled } }),
body: JSON.stringify({ key: "home_banner", value: { text, enabled, style } }),
});
if (!resp.ok) throw new Error("Save failed");
} finally {