org-roam / org-roam-ui

A graphical frontend for exploring your org-roam Zettelkasten
GNU General Public License v3.0
1.99k stars 109 forks source link

[BUG] Sub-headings with IDs wreak havoc on UI #297

Open frankjonen opened 1 year ago

frankjonen commented 1 year ago

Background

I have some level 2 headings that have an ID in their properties drawer as the only key / value pair.

Issue

Each time I click on one of them, the linked references in the sidebar run wild with uncounted duplicates.

Browsers

Example

:PROPERTIES:
:ID: the file ID 
:END:

#+title: Lord of the Rings

* Lord of the Rings
** The Two Towers 
   :PROPERTIES:
   :ID: the heading ID 
   :END: 

Causes that node to be rendered in UI like so

Linked references (1)

  • The Two Towers
  • The Two Towers

And once clicked, the fun begins. Randomly these or other links get added to the linked reference of nodes that aren't connected to the linked context. As an example Ducktales Adventures would have Home Alone: The Musical linked. The reference count doesn't change from the correct count though. It only adds the phantom linkage.

PatrickNorton commented 1 year ago

I can confirm this is happening on Firefox as well.

uncomfyhalomacro commented 1 year ago

I can confirm this as well. the contents of the subheadings are also duplicated