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: fix typo
Abdullah Atta27c6cdec470a
diff --git a/packages/editor/src/extensions/image/component.tsx b/packages/editor/src/extensions/image/component.tsxindex 59f5ad86d..748930ba9 100644--- a/packages/editor/src/extensions/image/component.tsx+++ b/packages/editor/src/extensions/image/component.tsx@@ -292,11 +292,11 @@ export function ImageComponent(const { naturalWidth, naturalHeight, clientHeight, clientWidth } =imageRef.current;- const orignalWidth = naturalWidth || clientWidth;- const orignalHeight = naturalHeight || clientHeight;- const naturalAspectRatio = orignalWidth / orignalHeight;+ const originalWidth = naturalWidth || clientWidth;+ const originalHeight = naturalHeight || clientHeight;+ const naturalAspectRatio = originalWidth / originalHeight;const fixedDimensions = fixAspectRatio(- size.width,+ size.width ?? originalWidth,naturalAspectRatio);