fix: system memo visibility was replace by user's setting (#1707)

Co-authored-by: Athurg Feng <athurg@gooth.org>
This commit is contained in:
Athurg Gooth 2023-05-22 12:15:00 +08:00 committed by GitHub
parent 0cea5ebaeb
commit 3b1bab651a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ const MemoVisibilitySelector = () => {
if (systemStatus.disablePublicMemos) {
editorStore.setMemoVisibility("PRIVATE");
}
}, [systemStatus.disablePublicMemos]);
}, [systemStatus.disablePublicMemos, editorState.memoVisibility]);
const handleMemoVisibilityOptionChanged = async (value: string) => {
const visibilityValue = value as Visibility;