summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-10-28 17:42:18 +0200
committerThomas F. K. Jorna <[email protected]>2021-10-28 17:42:18 +0200
commitb72ba8ef76dbb91ed39b23c6df154034c47e256f (patch)
treeac0e1ca0a5b015e4d598a1ca29f74286cdf28479
parentee870fbf97ad6b96521bc490c219088a5846b570 (diff)
fix: don't echo 'no node found' every time
-rw-r--r--org-roam-ui.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/org-roam-ui.el b/org-roam-ui.el
index 2ea3e38..b119085 100644
--- a/org-roam-ui.el
+++ b/org-roam-ui.el
@@ -497,8 +497,8 @@ The PADDING around the nodes in the viewport."
(interactive)
(if-let ((node (or id (org-roam-id-at-point))))
(websocket-send-text org-roam-ui-ws-socket (json-encode `((type . "command") (data .
- ((commandName . "zoom") (id . ,node) (speed . ,speed) (padding . ,padding)))))))
- (message "No node found."))
+ ((commandName . "zoom") (id . ,node) (speed . ,speed) (padding . ,padding))))))
+ (message "No node found.")))
;;;###autoload
@@ -508,8 +508,8 @@ Optionally with ID (string), SPEED (number, ms) and PADDING (number, px)."
(interactive)
(if-let ((node (or id (org-roam-id-at-point))))
(websocket-send-text org-roam-ui-ws-socket (json-encode `((type . "command") (data .
- ((commandName . "local") (id . ,node) (speed . ,speed) (padding . ,padding)))))))
- (message "No node found."))
+ ((commandName . "local") (id . ,node) (speed . ,speed) (padding . ,padding))))))
+ (message "No node found.")))
;;;###autoload
(defun org-roam-ui-sync-theme ()