Unverified Commit 2f4c5d7b authored by RoccoSmit's avatar RoccoSmit Committed by GitHub

fix: cancel out of no changes save (#4335)

Cancel out of trying to save
parent 9bd6d178
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment