mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: systemSetting in UI changed unexpectedly (#1812)
Fix systemSetting in UI changed unexpectedly Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user