Skip to content

Commit

Permalink
fix issue when constituents are undefined
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Modi <[email protected]>
  • Loading branch information
hjmodi committed Jan 22, 2024
1 parent bd1a8f2 commit dd6a617
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const StoreListingWidget = ({storeList, disableMap, storeType}) => {
</div>
}
{ storeType === "hosted" && <CapabilitiesSection store={store} />}
{ storeType === "group" && <ConstituentsSection constituents={store.constituents} />}
{ storeType === "group" && <ConstituentsSection constituents={store.constituents?store.constituents:[]} />}
</div>
{
storeType === "remote" && <div><CapabilitiesSection store={store} /></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ describe('GroupList tests', () => {
{name: "central", type: "group", packageType: "maven",
key: "maven:group:central", disabled: false, "allow_snapshots": true,
"allow_releases": true, url: "https://repo.maven.apache.org/maven2/",
constituents: [],
description: "official maven central"},
{name: "mrrc", type: "group", packageType: "maven",
key: "maven:group:mrrc", disabled: false,
Expand Down

0 comments on commit dd6a617

Please sign in to comment.