From 6685a50208a283c90ea1567f731b4d85adc90694 Mon Sep 17 00:00:00 2001
From: "Thomas F. K. Jorna" <thomasfkjorna@gmail.com>
Date: Thu, 5 Aug 2021 19:00:40 +0200
Subject: fix: typecast node

---
 components/contextmenu.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'components/contextmenu.tsx')

diff --git a/components/contextmenu.tsx b/components/contextmenu.tsx
index c20b3e9..442b956 100644
--- a/components/contextmenu.tsx
+++ b/components/contextmenu.tsx
@@ -90,7 +90,7 @@ export const ContextMenu = (props: ContextMenuProps) => {
                             </>
                         }
                         {!node?.properties.FILELESS ? (
-                            <MenuItem icon={<EditIcon />} onClick={() => openNodeInEmacs(node)}>Open in Emacs</MenuItem>
+                            <MenuItem icon={<EditIcon />} onClick={() => openNodeInEmacs(node as OrgRoamNode)}>Open in Emacs</MenuItem>
                         ) : (
                             <MenuItem icon={<AddIcon />}>Create node</MenuItem>
                         )}
-- 
cgit v1.2.3

