mirror of
https://github.com/usememos/memos.git
synced 2025-10-15 08:46:05 +08: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:
parent
c396cc9649
commit
5d06c8093c
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue