Steps to reproduce:
Create a versioned space
Create a page with a child page
Open and collapse the parent page in the page tree a couple of times
When expanded, the arrow points downwards and when collapsed it points to the right.
Every second time the arrow points in the wrong direction when expanding the page