mirror of
https://github.com/org-roam/org-roam
synced 2025-09-16 15:56:48 -05:00
(fix): replace if
with when
(#632)
This commit is contained in:
@@ -590,9 +590,8 @@ plist containing the path to the file, and the original title."
|
||||
(let ((titles (or titles (list (org-roam--path-to-slug file-path)))))
|
||||
(dolist (title titles)
|
||||
(let ((k (concat
|
||||
(if tags
|
||||
(concat "(" (s-join org-roam-tag-separator tags) ") ")
|
||||
"")
|
||||
(when tags
|
||||
(format "(%s) " (s-join org-roam-tag-separator tags)))
|
||||
title))
|
||||
(v (list :path file-path :title title)))
|
||||
(puthash k v ht))))))
|
||||
|
Reference in New Issue
Block a user