Fix rerender of sidebar when the details panel is opened.