From f9c11b3391900d6e8042dae3cfaf561c97f90d3c Mon Sep 17 00:00:00 2001 From: Emily C <138692410+emilycnava@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:40:48 -0400 Subject: [PATCH] Change reference location in api object for agency name on search (#2229) ## Summary Fixes #2172 ### Time to review: 5mins ## Changes proposed I changed the render logic to pull agency name from the root of the object as specified in the original issue. I chose to leave the agency code lookup as a fallback. Open to removing that fall back if we think that'd make more sense? Thoughts r.e. leaving agency code lookup as a backup @acouch ? ## Context for reviewers Make sure search results still have agency results where expected locally. ## Additional information --- .../src/components/search/SearchResultsListItem.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/search/SearchResultsListItem.tsx b/frontend/src/components/search/SearchResultsListItem.tsx index 4071a70a8..f6e5b1b3c 100644 --- a/frontend/src/components/search/SearchResultsListItem.tsx +++ b/frontend/src/components/search/SearchResultsListItem.tsx @@ -99,12 +99,13 @@ export default function SearchResultsListItem({