web: fix editor undo history reset on image delete (#10143)

This commit is contained in:
Abdullah Atta
2026-07-25 08:55:58 +05:00
committed by GitHub
parent 4f816b47ba
commit 771a8bb4e3

View File

@@ -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 &&