fix: systemSetting in UI changed unexpectedly (#1812)

Fix systemSetting in UI changed unexpectedly

Co-authored-by: Athurg Feng <athurg@gooth.org>
pull/1825/head
Athurg Gooth 2 years ago committed by GitHub
parent c396cc9649
commit 5d06c8093c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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),

Loading…
Cancel
Save