diff options
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r-- | org-roam-ui.el | 7 |
1 files changed, 3 insertions, 4 deletions
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) |