From ed190cd41e8ccfd5ab074b501f0718bd71a86532 Mon Sep 17 00:00:00 2001 From: Athurg Gooth Date: Wed, 6 Dec 2023 23:17:26 +0800 Subject: [PATCH] fix: visibility of memo editor is empty (#2580) Fix visibility of memo editor is empty --- web/src/components/MemoEditor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx index 2d4fb8d8..dab1cb5b 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"; }