mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 00:10:50 +00:00
Fix save draft issues
This commit is contained in:
parent
ea23a11053
commit
11c780acf9
@ -455,7 +455,7 @@ const EditBox: Component<{
|
||||
|
||||
createEffect(() => {
|
||||
if (location.pathname !== currentPath) {
|
||||
closeEditor();
|
||||
clearEditor();
|
||||
}
|
||||
})
|
||||
|
||||
@ -618,7 +618,7 @@ const EditBox: Component<{
|
||||
toast?.sendSuccess(intl.formatMessage(tToast.publishNoteSuccess));
|
||||
props.onSuccess && props.onSuccess({ success, reasons, note });
|
||||
setIsPostingInProgress(false);
|
||||
closeEditor();
|
||||
clearEditor();
|
||||
}
|
||||
unsub();
|
||||
}
|
||||
@ -647,7 +647,7 @@ const EditBox: Component<{
|
||||
}
|
||||
|
||||
setIsPostingInProgress(false);
|
||||
closeEditor();
|
||||
clearEditor();
|
||||
};
|
||||
|
||||
const mentionPositionOptions = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user