org-roam-ui icon indicating copy to clipboard operation
org-roam-ui copied to clipboard

[BUG] Navigating to a deleted node causes websocket error

Open Forge36 opened this issue 1 year ago • 0 comments

Describe the bug

  1. After deleting a node the UI doesn't remove the node
  2. "Open in emacs" will then show an errr in "Warnings"

■ Error (websocket): in callback `on-message': Wrong type argument: org-roam-node, nil

To Reproduce Which specific things did you do which lead to said bug? E.g. what did you click, which commands did you call, etc.

  1. Create a node
  2. Verify it's in the UI
  3. Delete in emacs (I'm using magit-file-delete)
  4. Click on node
  5. click the vertical dots "..." in the upper right
  6. click "open in emacs"
  7. See error in warning

Expected behavior

  1. The node should be removed from the UI when deleted (may be tricky)
  2. If the node cannot be found print a more useful message to the user about "node not found

What browser were you using? Chrome

Forge36 avatar Sep 24 '23 23:09 Forge36