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

This commit is contained in:
Kaki021 2026-02-14 16:58:58 +08:00 committed by GitHub
parent 861b58cbf3
commit 122ac94273
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({
// Reset editor state to initial values
dispatch(actions.reset());
if (!memoName && defaultVisibility) {
dispatch(actions.setMetadata({ visibility: defaultVisibility }));
}
// Notify parent component of successful save
onConfirm?.(result.memoName);