Expand/collapse all not working

Now it’s expanding the panel on the left, even though I’m trying to expand the panel on the right.