Skip to content

Commit

Permalink
Cancel out of trying to save
Browse files Browse the repository at this point in the history
  • Loading branch information
RoccoSmit committed Jan 31, 2025
1 parent 2058a8a commit 46b9872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/MemoEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 46b9872

Please sign in to comment.