[search] Fix refresh when switching back to grid layout in edit mode