From 24e107b28ce74bd74a547f00f96662db734e6011 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 7 Aug 2021 14:40:43 +0200 Subject: fix: correct label background text and .el cleanup --- org-roam-ui.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index a4c81c1..3e722a4 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -185,14 +185,13 @@ This serves the web-build and API over HTTP." (org-roam-db-sync) (org-roam-ui--send-graphdata))) ((string= command "create") - (progn (if (and (fboundp #'orb-edit-note) (alist-get 'ROAM_REFS data)) - (orb-edit-note (alist-get 'id data))) - (org-roam-capture- - :node (org-roam-node-create :title (alist-get 'title data)) - :props '(:finalize find-file)))) - (t (message "Something went wrong when receiving a message from Org-Roam-UI"))))) + (orb-edit-note (alist-get 'id data))) + (org-roam-capture- + :node (org-roam-node-create :title (alist-get 'title data)) + :props '(:finalize find-file)))) + (t (message "Something went wrong when receiving a message from Org-Roam-UI"))))) :on-close (lambda (_websocket) (remove-hook 'after-save-hook #'org-roam-ui--on-save) (org-roam-ui-follow-mode -1) -- cgit v1.2.3