Skip to content

Commit

Permalink
fix pathMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
MetaCorp committed Nov 24, 2024
1 parent be8392a commit 285dff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "augmented-canvas",
"name": "Augmented Canvas",
"version": "0.1.17",
"version": "0.1.18",
"minAppVersion": "1.1.0",
"description": "Obsidian Canvas with AI features.",
"author": "MetaCorp",
Expand Down
2 changes: 1 addition & 1 deletion src/AugmentedCanvasPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class AugmentedCanvasPlugin extends Plugin {
.first()?.view;
if (!canvasView) return false;

const menu = (canvasView as CanvasView)?.canvas.menu;
const menu = (canvasView as CanvasView)?.canvas?.menu;
if (!menu) return false;

const selection = menu.selection;
Expand Down

0 comments on commit 285dff0

Please sign in to comment.