mirror of
https://github.com/org-roam/org-roam
synced 2025-08-03 12:27:23 -05:00
(internal): change org-roam-db--update-tags
to only add non-nil tags (#759)
This commit is contained in:
@ -332,8 +332,8 @@ connections, nil is returned."
|
|||||||
|
|
||||||
(defun org-roam-db--update-tags ()
|
(defun org-roam-db--update-tags ()
|
||||||
"Update the tags of the current buffer into the cache."
|
"Update the tags of the current buffer into the cache."
|
||||||
(let* ((file (file-truename (buffer-file-name)))
|
(when-let ((file (file-truename (buffer-file-name)))
|
||||||
(tags (org-roam--extract-tags)))
|
(tags (org-roam--extract-tags)))
|
||||||
(org-roam-db-query [:delete :from tags
|
(org-roam-db-query [:delete :from tags
|
||||||
:where (= file $s1)]
|
:where (= file $s1)]
|
||||||
file)
|
file)
|
||||||
|
Reference in New Issue
Block a user