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
editor: do not cache images without hash
Abdullah Atta8c494642e47c
diff --git a/packages/editor/src/extensions/image/component.tsx b/packages/editor/src/extensions/image/component.tsxindex 631913a17..8e8911a96 100644--- a/packages/editor/src/extensions/image/component.tsx+++ b/packages/editor/src/extensions/image/component.tsx@@ -99,7 +99,7 @@ export function ImageComponent([src, dataurl, imageRef, downloadOptions]);- if (source) IMAGE_SOURCE_CACHE[hash] = source;+ if (source && hash) IMAGE_SOURCE_CACHE[hash] = source;const relativeHeight = aspectRatio? editor.view.dom.clientWidth / aspectRatio: undefined;