In the shown picture, the two groups are the only two groups in the entire space. I created a bunch of duplicate TOC items by moving the green box below the top of the blue box, and then moving it back above the top of the blue box. I kept repeating doing that and every time duplicate TOC items would appear.
Relatedly, when loading this space, I’m seeing four TOC entries on initial load.
The above picture is after a hard refresh of the page with no cache.

