Fix re-rendering issue when clicking on details in search.