Persist style when saving banner settings
cgen-4d173f8386334c82b35bad482c40addd
This commit is contained in:
parent
5dffbdcd0b
commit
9eb572e038
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue