diff --git a/manifest-beta.json b/manifest-beta.json index a45718f0..67d88671 100644 --- a/manifest-beta.json +++ b/manifest-beta.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "2.5.0-beta-4", + "version": "2.5.0-beta-5", "minAppVersion": "1.1.6", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/src/utils/ObsidianUtils.ts b/src/utils/ObsidianUtils.ts index 7a070c3e..352ab801 100644 --- a/src/utils/ObsidianUtils.ts +++ b/src/utils/ObsidianUtils.ts @@ -26,7 +26,7 @@ export const getParentOfClass = (element: Element, cssClass: string):HTMLElement }; export function getExcalidrawViews(app: App): ExcalidrawView[] { - const leaves = app.workspace.getLeavesOfType(VIEW_TYPE_EXCALIDRAW).filter(l=>l instanceof ExcalidrawView); + const leaves = app.workspace.getLeavesOfType(VIEW_TYPE_EXCALIDRAW).filter(l=>l.view instanceof ExcalidrawView); return leaves.map(l=>l.view as ExcalidrawView); }