mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): Check if link-description is empty prior to inserting in db (#927)
* (fix): Check if link-description is empty prior to inserting in db Caused problems with plain links, i.e., those not framed by brackets (e.g. `file:foo.org` or `id:$uuid`).
This commit is contained in:
@ -594,11 +594,12 @@ it as FILE-PATH."
|
|||||||
(org-ref-split-and-strip-string path))
|
(org-ref-split-and-strip-string path))
|
||||||
(_ (list (org-element-property :raw-link link))))))
|
(_ (list (org-element-property :raw-link link))))))
|
||||||
(seq-do (lambda (name)
|
(seq-do (lambda (name)
|
||||||
|
(when name
|
||||||
(push (vector file-path
|
(push (vector file-path
|
||||||
name
|
name
|
||||||
type
|
type
|
||||||
properties)
|
properties)
|
||||||
links))
|
links)))
|
||||||
names))))))
|
names))))))
|
||||||
links))
|
links))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user