(fix): Adapt get-title-or-slug to new schemata (#916)

Follow-up to #908.
This commit is contained in:
Leo Vivier 2020-07-10 19:34:12 +02:00 committed by GitHub
parent f1dbe3fdf9
commit ef23f507ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -775,7 +775,7 @@ Examples:
(defun org-roam--get-title-or-slug (path)
"Convert `PATH' to the file title, if it exists. Else, return the path."
(or (car (org-roam-db--get-titles path))
(or (org-roam-db--get-titles path)
(org-roam--path-to-slug path)))
(defun org-roam--title-to-slug (title)