summaryrefslogtreecommitdiff
path: root/components/Sidebar
diff options
context:
space:
mode:
Diffstat (limited to 'components/Sidebar')
-rw-r--r--components/Sidebar/Backlinks.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/Sidebar/Backlinks.tsx b/components/Sidebar/Backlinks.tsx
index 7796a66..6a5dd00 100644
--- a/components/Sidebar/Backlinks.tsx
+++ b/components/Sidebar/Backlinks.tsx
@@ -8,7 +8,7 @@ import React from 'react'
import { ProcessedOrg } from '../../util/processOrg'
export interface BacklinksProps {
- previewNode: OrgRoamNode
+ previewNode: NodeObject | OrgRoamNode
setPreviewNode: any
nodeById: NodeById
linksByNodeId: LinksByNodeId
@@ -37,7 +37,7 @@ export const Backlinks = (props: BacklinksProps) => {
macros,
attachDir,
} = props
- const links = linksByNodeId[previewNode?.id] ?? []
+ const links = linksByNodeId[(previewNode as OrgRoamNode)?.id] ?? []
const backLinks = links
.filter((link: LinkObject) => {