A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix editor undo history reset on image delete (#10143)
Abdullah Atta771a8bb4e324
diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsxindex 78292f3a5..ac7d47865 100644--- a/apps/web/src/components/editor/index.tsx+++ b/apps/web/src/components/editor/index.tsx@@ -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 &&