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

Cancel out of trying to save
pull/4298/merge
RoccoSmit 4 weeks ago committed by GitHub
parent 9bd6d17864
commit 2f4c5d7bc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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));

Loading…
Cancel
Save