summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--nroam.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/nroam.el b/nroam.el
index d30b8e4..ed635ee 100644
--- a/nroam.el
+++ b/nroam.el
@@ -119,8 +119,8 @@ Make the region inserted by BODY read-only, and marked with
(defun nroam-backlinks-section ()
"Insert org-roam backlinks for the current buffer."
- (let* ((backlinks (nroam--get-backlinks))
- (groups (seq-reverse (nroam--group-backlinks backlinks))))
+ (when-let* ((backlinks (nroam--get-backlinks))
+ (groups (seq-reverse (nroam--group-backlinks backlinks))))
(nroam--ensure-empty-line)
(nroam--insert-backlinks-heading (seq-length backlinks))
(seq-do #'nroam--insert-backlink-group groups)