From 54507855a316df0a428119093a16c5e5180fc56d Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 5 Aug 2021 21:30:12 +0200 Subject: fix: update notes smoothly --- org-roam-ui.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'org-roam-ui.el') diff --git a/org-roam-ui.el b/org-roam-ui.el index b3c3ace..fe0eb1b 100644 --- a/org-roam-ui.el +++ b/org-roam-ui.el @@ -151,11 +151,10 @@ This serves the web-build and API over HTTP." :id (alist-get 'id data))))) ((string= command "delete") (progn - (delete-file (alist-get 'file data) - (message "Deleted %s" (alist-get 'file data)))) + (message "Deleted %s" (alist-get 'file data)) + (delete-file (alist-get 'file data)) (org-roam-db-sync) - (org-roam-ui--update-graphdata "node" "deleted" (alist-get 'id data)) - ) + (org-roam-ui--send-graphdata))) (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) -- cgit v1.2.3