1
1
mirror of https://github.com/usememos/memos.git synced 2024-12-22 02:31:46 +03:00

fix: visibility of memo editor is empty ()

Fix visibility of memo editor is empty
This commit is contained in:
Athurg Gooth 2023-12-06 23:17:26 +08:00 committed by GitHub
parent 33dda9bf87
commit ed190cd41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ const MemoEditor = (props: Props) => {
}, []);
useEffect(() => {
let visibility = userSetting.memoVisibility;
let visibility = userSetting.memoVisibility || "PRIVATE";
if (systemStatus.disablePublicMemos && visibility === "PUBLIC") {
visibility = "PRIVATE";
}