feat(journey-editor): JourneyEditor frontend — issue #753 #792
@@ -43,10 +43,18 @@ async function handleNoteBlur() {
|
||||
}
|
||||
|
||||
async function handleNoteRemove() {
|
||||
const prevDraft = noteDraft;
|
||||
const prevShowNote = showNote;
|
||||
noteDraft = '';
|
||||
showNote = false;
|
||||
noteError = '';
|
||||
await onNotePatch(null);
|
||||
try {
|
||||
await onNotePatch(null);
|
||||
} catch {
|
||||
noteDraft = prevDraft;
|
||||
showNote = prevShowNote;
|
||||
noteError = m.journey_note_error();
|
||||
}
|
||||
}
|
||||
|
||||
function handleRemoveClick() {
|
||||
|
||||
Reference in New Issue
Block a user