mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
web: fix editor undo history reset on image delete (#10143)
This commit is contained in:
@@ -252,16 +252,6 @@ const MemoizedEditorView = React.memo(EditorView, (prev, next) => {
|
||||
prev.session.activeSearchResultId === next.session.activeSearchResultId &&
|
||||
prev.session.nonce === next.session.nonce;
|
||||
|
||||
if (
|
||||
"attachmentsLength" in prev.session &&
|
||||
"attachmentsLength" in next.session
|
||||
) {
|
||||
return (
|
||||
baseConditions &&
|
||||
prev.session.attachmentsLength === next.session.attachmentsLength
|
||||
);
|
||||
}
|
||||
|
||||
if ("note" in prev.session && "note" in next.session) {
|
||||
return (
|
||||
baseConditions &&
|
||||
|
||||
Reference in New Issue
Block a user