diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx index 6c3b51caf2ac8..64b27056a0f1c 100644 --- a/web/src/components/MemoEditor/index.tsx +++ b/web/src/components/MemoEditor/index.tsx @@ -336,6 +336,9 @@ const MemoEditor = (props: Props) => { } if (updateMask.size === 0) { toast.error("No changes detected"); + if (onCancel) { + onCancel(); + } return; } const memo = await memoStore.updateMemo(memoPatch, Array.from(updateMask));