summaryrefslogtreecommitdiff
path: root/org-roam-ui.el
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-08-05 21:30:12 +0200
committerThomas F. K. Jorna <[email protected]>2021-08-05 21:30:12 +0200
commit54507855a316df0a428119093a16c5e5180fc56d (patch)
tree6f0b5373f72a07a54f7033b08d435ee836f4e56f /org-roam-ui.el
parent6685a50208a283c90ea1567f731b4d85adc90694 (diff)
fix: update notes smoothly
Diffstat (limited to 'org-roam-ui.el')
-rw-r--r--org-roam-ui.el7
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)