(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:
Leo Vivier
2020-07-11 23:42:05 +02:00
committed by GitHub
parent f9fea29c44
commit 7a4b15fd36

View File

@ -594,11 +594,12 @@ it as FILE-PATH."
(org-ref-split-and-strip-string path))
(_ (list (org-element-property :raw-link link))))))
(seq-do (lambda (name)
(when name
(push (vector file-path
name
type
properties)
links))
links)))
names))))))
links))