diff --git a/manifest.json b/manifest.json index f4929b4..9f56a81 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "2.0.12", + "version": "2.0.13", "minAppVersion": "1.1.6", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", @@ -9,4 +9,4 @@ "fundingUrl": "https://ko-fi.com/zsolt", "helpUrl": "https://github.com/zsviczian/obsidian-excalidraw-plugin#readme", "isDesktopOnly": false -} +} \ No newline at end of file diff --git a/src/ExcalidrawView.ts b/src/ExcalidrawView.ts index 48ef79c..da3f5bb 100644 --- a/src/ExcalidrawView.ts +++ b/src/ExcalidrawView.ts @@ -3996,7 +3996,7 @@ export default class ExcalidrawView extends TextFileView { } const el = els[0] as ExcalidrawImageElement; const imageFile = this.excalidrawData.getFile(el.fileId); - if(!imageFile.isHyperLink) return null; + if(!imageFile?.isHyperLink) return null; return {imageEl: el, embeddedFile: imageFile}; } diff --git a/src/dialogs/Messages.ts b/src/dialogs/Messages.ts index 3a87eea..f33900a 100644 --- a/src/dialogs/Messages.ts +++ b/src/dialogs/Messages.ts @@ -17,6 +17,10 @@ I develop this plugin as a hobby, spending my free time doing this. If you find
`, +"2.0.13":` +## Fixed +- Excalidraw crashes if you paste an image and right-click on canvas immediately after pasting. +`, "2.0.12":` ## Fixed - Stencil library not working [#1516](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/1516), [#1517](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/1517)