mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
fix: cancel out of no changes save (#4335)
Cancel out of trying to save
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user