mirror of
https://github.com/usememos/memos.git
synced 2024-12-22 02:31:46 +03:00
fix: visibility of memo editor is empty (#2580)
Fix visibility of memo editor is empty
This commit is contained in:
parent
33dda9bf87
commit
ed190cd41e
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user