diff --git a/org-roam-mode.el b/org-roam-mode.el index 7cd2883..5686c15 100644 --- a/org-roam-mode.el +++ b/org-roam-mode.el @@ -345,6 +345,8 @@ the same time: from SOURCE-NODE's file for the link (that references the other node) at POINT. Acts a child section of the previous one." + (unless (file-exists-p (org-roam-node-file source-node)) + (cl-return-from org-roam-node-insert-section)) (magit-insert-section section (org-roam-node-section) (let ((outline (if-let ((outline (plist-get properties :outline))) (mapconcat #'org-link-display-format outline " > ")