Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: visibility of memo editor is empty (#2580)

Athurg Goothed190cd41e8c
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index 2d4fb8d8a..dab1cb5ba 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -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";
}