Unverified Commit 5d06c809 authored by Athurg Gooth's avatar Athurg Gooth Committed by GitHub

fix: systemSetting in UI changed unexpectedly (#1812)

Fix systemSetting in UI changed unexpectedly
Co-authored-by: 's avatarAthurg Feng <athurg@gooth.org>
parent c396cc96
......@@ -74,6 +74,7 @@ const SystemSection = () => {
...state,
allowSignUp: value,
});
globalStore.setSystemStatus({ allowSignUp: value });
await api.upsertSystemSetting({
name: "allow-signup",
value: JSON.stringify(value),
......@@ -197,7 +198,7 @@ const SystemSection = () => {
...state,
memoDisplayWithUpdatedTs: value,
});
globalStore.setSystemStatus({ disablePublicMemos: value });
globalStore.setSystemStatus({ memoDisplayWithUpdatedTs: value });
await api.upsertSystemSetting({
name: "memo-display-with-updated-ts",
value: JSON.stringify(value),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment