Unverified Commit 122ac942 authored by Kaki021's avatar Kaki021 Committed by GitHub

fix(web): ensure default memo visibility is correctly applied (#5623)

parent 861b58cb
...@@ -96,6 +96,9 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({ ...@@ -96,6 +96,9 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({
// Reset editor state to initial values // Reset editor state to initial values
dispatch(actions.reset()); dispatch(actions.reset());
if (!memoName && defaultVisibility) {
dispatch(actions.setMetadata({ visibility: defaultVisibility }));
}
// Notify parent component of successful save // Notify parent component of successful save
onConfirm?.(result.memoName); onConfirm?.(result.memoName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment