fix(web): ensure default memo visibility is correctly applied (#5623)
This commit is contained in:
parent
861b58cbf3
commit
122ac94273
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue