Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Aug 5, 2024
1 parent 53ad929 commit d2fc388
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/settings/LocationLocations/LocationDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,9 @@ const LocationDetail = ({
);
};

const institutionList = institutions?.records || [];
const institution = institutionList.length === 1 ? institutionList[0] : null;

const campusList = campuses?.records || [];
const campus = campusList.length === 1 ? campusList[0] : null;

const libraryList = libraries?.records || [];
const library = libraryList.length === 1 ? libraryList[0] : null;
const institution = institutions.length === 1 ? institutions[0] : null;
const campus = campuses.length === 1 ? campuses[0] : null;
const library = libraries.length === 1 ? libraries[0] : null;

// massage the "details" property which is represented in the API as
// an object but displayed on the details page as an array of
Expand Down

0 comments on commit d2fc388

Please sign in to comment.