summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-08-05 19:00:40 +0200
committerThomas F. K. Jorna <[email protected]>2021-08-05 19:00:40 +0200
commit6685a50208a283c90ea1567f731b4d85adc90694 (patch)
tree73a6a4eb9ab6791fe74bf511dfa563ca62d615ee /components
parent54b7210b9160c4aa3fffa9e29737111593af6512 (diff)
fix: typecast node
Diffstat (limited to 'components')
-rw-r--r--components/contextmenu.tsx2
1 files changed, 1 insertions, 1 deletions
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>
)}