This fix is tricky because it's part of a bigger hack whose rationale is explained in the FIXME above the modified code. Explaining this hack is very tricky and understanding it very difficult as well.
To review that MR I suggest that the reviewer proceeds to functional testing and especially stress testing on scrolling up and down the grid of results and at the same time expanding/folding groups and also switching sections.
This fix is tricky because it's part of a bigger hack whose rationale is explained in the FIXME above the modified code. Explaining this hack is very tricky and understanding it very difficult as well.
To review that MR I suggest that the reviewer proceeds to functional testing and especially stress testing on scrolling up and down the grid of results and at the same time expanding/folding groups and also switching sections.